- Timestamp:
- Apr 20, 2017, 2:50:46 PM (4 years ago)
- Location:
- lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/debManager.py
r3927 r4370 48 48 if appInfo['package'] not in processedPkg: 49 49 processedPkg.append(appInfo['package']) 50 app=self._resolve_App(appInfo['package']) 50 filters=1 51 if action=='remove': 52 filters=2 53 app=self._resolve_App(appInfo['package'],filters) 51 54 if app: 52 55 if action=='install': … … 100 103 except Exception as e: 101 104 self._debug("Remove error: " +str(e.code)) 105 self._debug("Remove error: " +str(e)) 102 106 self._set_status(e.code) 103 107 finally: … … 163 167 applist=[] 164 168 self.return_msg=False 169 if not filters: 170 filters=1 165 171 try: 166 result=self.installer.resolve(1,[appName,],None,self._fake_callback, None) 172 self._debug("Filter for resolver: "+str(filters)) 173 result=self.installer.resolve(filters,[appName,],None,self._fake_callback, None) 167 174 applist=result.get_package_array() 168 if applist: 169 self._debug("Application "+applist[0].get_name()+" resolved succesfully") 170 app=applist[0] 175 resolvedApp=applist[0] 176 #resolver bug: filters not work so if we want to remove an app first we must get the installed version... 177 if filters==2: 178 for app in applist: 179 if (str(app.get_info()).find('PK_INFO_ENUM_INSTALLED')!=-1): 180 resolvedApp=app 181 if resolvedApp: 182 self._debug("Application "+resolvedApp.get_name()+" resolved succesfully") 183 app=resolvedApp 171 184 except Exception as e: 172 185 self._debug("Couldn't resolve "+appName) … … 176 189 return(app) 177 190 #def _resolve_App 191 -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r4363 r4370 485 485 #Check if package is installed if we want to remove it or vice versa 486 486 for appInfo in applistInfo: 487 if (action=='install' and appInfo['state']=='installed') or (action=='remove' and appInfo['state']=='available'): 487 # if (action=='install' and appInfo['state']=='installed') or (action=='remove' and appInfo['state']=='available'): 488 if (action=='remove' and appInfo['state']=='available'): 488 489 if action=='remove': 489 490 # self.result[action]['status']={appInfo['package']:3} … … 491 492 else: 492 493 # self.result[action]['status']={appInfo['package']:4} 493 self.result[action]['status']={'status':4} 494 # self.result[action]['status']={'status':4} 495 pass 494 496 return_msg=False 495 497 typeDict={}
Note: See TracChangeset
for help on using the changeset viewer.