- Timestamp:
- Apr 26, 2017, 12:15:39 PM (4 years ago)
- Location:
- lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/loadStore.py
r4425 r4447 60 60 def _parse_desktop(self,store): #DEPRECATED. Loads the apps from the available desktop files 61 61 desktopDir='/usr/share/applications' 62 return(store)63 62 applist=[] 64 for app in store.get_apps(): 65 if os.path.isfile(desktopDir+'/'+app.get_id()): 63 for desktopFile in os.listdir(desktopDir): 64 if desktopFile.endswith('desktop'): 65 a=appstream.App() 66 66 try: 67 app.parse_file(desktopDir+'/'+desktop,appstream.AppParseFlags.APPEND_DATA) 68 store.add_app(app) 69 except Exception as e: 67 a.parse_file(desktopDir+'/'+desktopFile,16) 68 a.set_priority(0) 69 for veto in a.get_vetos(): 70 a.remove_veto(veto) 71 store.add_app(a) 72 self._debug("Adding app from desktop "+desktopFile) 73 except: 70 74 pass 71 # for veto in app.get_vetos():72 # app.remove_veto(veto)73 # store.add_app(app)74 75 return(store) 75 76 #def _parse_desktop … … 90 91 lliurexApps.update({app.get_id_filename():app}) 91 92 else: 92 app.set_priority( 0)93 app.set_priority(10) 93 94 if app.get_id_filename() in lliurexApps.keys(): 94 95 # app.set_merge_kind(appstream.AppMergeKind.APPEND) -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/shManager.py
r4417 r4447 37 37 def execute_action(self,action,applist): 38 38 self.result['status']={'status':-1,'msg':''} 39 # self.result['data'].append(applist)40 39 count=len(applist) 41 40 if (action): … … 93 92 else: 94 93 err=cmdCmd.poll() 94 err=3 #Force "package not installed" error 95 95 cmdResult=cmdCmd.stdout.read() 96 96 cmdError=cmdCmd.stderr.read() … … 107 107 err=11 108 108 self._set_status(err) 109 return err109 return appInfo 110 110 #def install_App 111 111
Note: See TracChangeset
for help on using the changeset viewer.