- Timestamp:
- Mar 9, 2017, 12:58:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r3848 r3852 273 273 #put a 100% just in case 274 274 if parentAction in self.progressActions.keys(): 275 # if self.progressActions[parentAction]: 276 # self.progressActions[parentAction]=100 275 277 self.progressActions[parentAction]=100 276 278 self.lock.release() … … 358 360 action='pkginfo' 359 361 typeDict={} 362 result=[] 360 363 for appInfo in applistInfo: 361 364 package_type=self._check_package_type(appInfo) … … 369 372 #Only search deb's full info if it's required 370 373 if (package_type=='deb' and fullsearch==False): 374 result=result+typeDict[package_type] 371 375 continue 372 # self._debug("Retrieving info for "+str(typeDict[package_type])) 373 backup_applist=applistInfo 374 try: 375 pkgInfoFunction=self._execute_class_method(action,package_type,launchedby) 376 applistInfo=pkgInfoFunction.execute_action(action,typeDict[package_type])['data'] 377 except: 378 applistInfo=backup_applist 379 return(applistInfo) 376 self._debug("Retrieving info for "+str(typeDict[package_type])) 377 pkgInfoFunction=self._execute_class_method(action,package_type,launchedby) 378 result=result+pkgInfoFunction.execute_action(action,typeDict[package_type])['data'] 379 return(result) 380 380 #def _get_Extended_App_Info 381 381 … … 406 406 # - List of dicts with all the info 407 407 #### 408 def _search_Store(self,searchItem='',action='search',fullsearch=False,launchedby=None ,exact_match=True):408 def _search_Store(self,searchItem='',action='search',fullsearch=False,launchedby=None): 409 409 applist={} 410 410 result={} … … 421 421 if not launchedby: 422 422 launchedby=action 423 #Set the exact match to false for search and list methods 424 if (launchedby=='search' or launchedby=='list'): 425 exact_match=False 423 #Set the exact match to false for search method 424 exact_match=True 425 if (launchedby=='search'): 426 exact_match=False 426 427 searchFunction=self._execute_class_method(action,'*',launchedby) 427 428 aux_result=searchFunction.execute_action(self.store,action,searchItem,exact_match) … … 509 510 #Standalone installers must have the subcategory "installer" 510 511 #Zomandos must have the subcategory "Zomando" 511 #self._debug("Checking package type for app "+appInfo['name'])512 self._debug("Checking package type for app "+appInfo['name']) 512 513 if "Zomando" in appInfo['categories']: 513 514 return_msg="zmd"
Note: See TracChangeset
for help on using the changeset viewer.