- Timestamp:
- Mar 10, 2017, 10:19:24 AM (3 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
r3881 r3884 93 93 if fn != uniqDict[pkg]['fn']: 94 94 if fn != pkg: 95 self._debug("Removed duplicated "+app.get_id())95 self._debug("Removed duplicated "+app.get_id()) 96 96 store.remove_app(app) 97 97 else: 98 self._debug("Removed duplicated "+uniqDict[pkg]['app'].get_id())98 self._debug("Removed duplicated "+uniqDict[pkg]['app'].get_id()) 99 99 store.remove_app(uniqDict[pkg]['app']) 100 100 uniqDict.update({pkg:{'fn':app.get_id_filename(),'app':app}}) -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/searchManager.py
r3836 r3884 37 37 if not type(tokens) is str: 38 38 tokens='' 39 if len(tokens.split(' '))>1 or action=='list': 39 else: 40 tokens=tokens.lower() 41 if len(tokens.split(' '))>1 and action=='search': 40 42 self._debug("Tokenizing search items") 41 43 tokens=appstream.utils_search_tokenize(tokens) 42 44 else: 43 tokens= [tokens]45 tokens=tokens.split(' ') 44 46 self.store=appstreamStore 45 47 self.result['status']={'status':-1,'msg':''} … … 61 63 62 64 def _search_app(self,tokens,exact_match): 63 self._debug("Searching app "+str(tokens)+ " with exact_match="+str(exact_match))65 self._debug("Searching app "+str(tokens)+ " with exact_match="+str(exact_match)) 64 66 applist=[] 65 67 app=None 66 68 if len(tokens)==1: 67 69 app=self._app_exists(tokens[0]) 68 69 70 if app: 70 71 applist.append(app)
Note: See TracChangeset
for help on using the changeset viewer.