- Timestamp:
- May 26, 2017, 12:12:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r4920 r4924 482 482 result={} 483 483 return_msg=False 484 if (self._search_Store(appName,'search', False,action)):484 if (self._search_Store(appName,'search',True,action)): 485 485 applistInfo=self.result[action]['data'] 486 486 typeDict={} 487 487 #Check if package is installed if we want to remove it or vice versa 488 488 for appInfo in applistInfo: 489 #Deactivated as appstream don't get the right status in all cases. Also it only returns two values: Installed and Unknown. Perhaps in some newer versions.... 489 490 # if (action=='install' and appInfo['state']=='installed') or (action=='remove' and appInfo['state']=='available'): 490 if (action=='remove' and appInfo['state']=='available'):491 if action=='remove':491 # if (action=='remove' and appInfo['state']=='available'): 492 # if action=='remove': 492 493 # self.result[action]['status']={appInfo['package']:3} 493 self.result[action]['status']={'status':3}494 else:494 # self.result[action]['status']={'status':3} 495 # else: 495 496 # self.result[action]['status']={appInfo['package']:4} 496 497 # self.result[action]['status']={'status':4} 497 pass498 return_msg=False499 typeDict={}500 break498 # pass 499 # return_msg=False 500 # typeDict={} 501 # break 501 502 502 503 package_type=self._check_package_type(appInfo)
Note: See TracChangeset
for help on using the changeset viewer.