Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 206538
Collapse All | Expand All

(-)setup.py (-22 lines)
Lines 108-132 Link Here
108
            data_files      = i18n_files + doc_files + os_files,
108
            data_files      = i18n_files + doc_files + os_files,
109
            **info.SETUP
109
            **info.SETUP
110
        )
110
        )
111
112
if not WINDOWS:
113
    # Update the mime types
114
    if ROOT and dist != None:
115
        
116
        #update the mimetypes database
117
        try: 
118
            subprocess.call(["update-mime-database", 
119
                os.path.join(sys.prefix,"share/mime/")])
120
            write('Updating the mime types database.\n')
121
        except:
122
            error('Failed to update the mime types database.\n')
123
124
        #update the .desktop file database
125
        try:
126
            subprocess.call(["update-desktop-database"])
127
            write('Updating the .desktop file database.\n')
128
        except:
129
            error('Failed to update the .desktop file database.\n')
130
131
write(  "\nInstallation finished! You can now run Phatch by typing 'phatch' \n"
132
        "or through your applications menu.\n")

Return to bug 206538