Changeset 3171 for lliurex-store
- Timestamp:
- Jan 3, 2017, 9:45:13 AM (4 years ago)
- Location:
- lliurex-store/trunk/fuentes/lliurex-appstore.install/usr
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/launcher.py
r3060 r3171 24 24 return(printed) 25 25 26 CURSOR_UP='\033[F' 27 ERASE_LINE='\033[K' 26 28 actions=[] 27 29 parms={} … … 58 60 print ("All actions launched: " +str(actions)) 59 61 while store.is_action_running(): 60 print(" ",end="\r") 62 # print(" ",end="\r") 63 print (CURSOR_UP + ERASE_LINE) 61 64 print(store.get_progress(),end="\r") 62 65 time.sleep(0.1) -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/infoManager.py
r3151 r3171 3 3 class infomanager: 4 4 def __init__(self): 5 self.dbg= 15 self.dbg=0 6 6 self.pluginInfo={'info':'*'} 7 7 self.applistInfo=[] -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/loadStore.py
r3170 r3171 7 7 class loadstore: 8 8 def __init__(self): 9 self.dbg= 19 self.dbg=0 10 10 self.pluginInfo={'load':'*'} 11 11 self.store='' … … 45 45 print ("Failed to load"+str(flag)) 46 46 pass 47 # store.load(appstream.StoreLoadFlags.APPDATA)48 # store.load(appstream.StoreLoadFlags.APP_INFO_SYSTEM)49 # store.load(appstream.StoreLoadFlags.APP_INSTALL)50 # store.load(appstream.StoreLoadFlags.APP_INFO_USER)51 # store.load(appstream.StoreLoadFlags.DESKTOP)52 # store.load(appstream.StoreLoadFlags.ALLOW_VETO)53 #54 # store.load(appstream.StoreLoadFlags.APP_INFO_SYSTEM|appstream.StoreLoadFlags.APP_INSTALL|appstream.StoreLoadFlags.APP_INFO_USER|appstream.StoreLoadFlags.DESKTOP|appstream.StoreLoadFlags.APPDATA|appstream.StoreLoadFlags.ALLOW_VETO)55 # try:56 # store.load_path("/var/lib/apt/lists/",None)57 # except e as Exception:58 # print (e.message)59 # lliurex_dir="/usr/share/app-info/xmls2"60 # store.set_origin('lliurex')61 # if os.path.exists(lliurex_dir):62 # for lliurex in os.listdir(lliurex_dir):63 # # if lliurex.endswith('.yml'):64 # if lliurex.endswith('.xml') or lliurex.endswith('.yml'):65 # storePath=Gio.File.new_for_path(lliurex_dir+'/'+lliurex)66 # self._debug("Adding file "+lliurex_dir+'/'+lliurex)67 # try:68 # store.from_file(storePath,iconPath,None)69 # except Exception as e:70 # self._debug("Couldn't add file "+lliurex+" to store")71 # self._debug("Reason: "+str(e))72 # pass73 47 store=self._sanitize_store(store) 74 48 self.store=store … … 76 50 #def load_store 77 51 78 def _parse_desktop(self,store): 52 def _parse_desktop(self,store): #DEPRECATED 79 53 desktopDir='/usr/share/applications' 80 54 return(store) … … 99 73 if not app.get_pkgnames(): 100 74 store.remove_app(app) 101 102 75 return (store) 103 76 #def _sanitize_store -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/searchManager.py
r3170 r3171 7 7 def __init__(self): 8 8 self.locale=locale.getlocale()[0] 9 self.dbg= 19 self.dbg=0 10 10 self.store='' 11 11 self.pluginInfo={'search':'*','list':'*','list_sections':'*'} … … 32 32 33 33 def execute_action(self,appstreamStore,action,tokens): 34 if not type(tokens) is str: 35 tokens='' 34 36 if len(tokens.split(' '))>1 or action=='list': 35 37 self._debug("Tokenizing search items") -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/shManager.py
r3170 r3171 11 11 self.pluginInfo={'install':'sh'} 12 12 if action=='install': 13 self.install_App(app ['installerUrl'])13 self.install_App(app) 14 14 #def __init__ 15 15 -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/zmdManager.py
r3170 r3171 73 73 while zmdCmd.poll() is None: 74 74 self._callback(zmdLauncher) 75 time.sleep(0. 2)75 time.sleep(0.4) 76 76 zmdResult=zmdCmd.stdout.read() 77 77 zmdError=zmdCmd.stderr.read() -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/storeManager.py
r3144 r3171 199 199 self._debug("Reason: "+ str(e)) 200 200 finally: 201 if action in self.threadsRunning :201 if action in self.threadsRunning.keys(): 202 202 del(self.threadsRunning[action]) 203 203 #def _join_action … … 211 211 #### 212 212 def _registerProcessProgress(self,action,function,parentAction=None): 213 if action in self.registerProcessProgress :213 if action in self.registerProcessProgress.keys(): 214 214 self._debug("Appended process for action :"+action +" and function: "+str(function)) 215 215 self.registerProcessProgress[action].append(function) … … 377 377 self._debug("Plugin for generic search: "+self.registeredPlugins[action]['*']) 378 378 finder=self.registeredPlugins[action][('*')] 379 #Tokenize the search if there're multiple items380 # if len(searchItem.split(' '))>1 or action=='list':381 # self._debug("Tokenizing search items")382 # searchItem=appstream.utils_search_tokenize(searchItem)383 # else:384 # searchItem=[searchItem]385 # searchFunction=eval(finder+"()")386 379 searchFunction=eval(self.pluginMod+'.'+finder+"()") 387 380 if not launchedby: -
lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/share/app-info/xmls/Components-amd64.yml
r3168 r3171 757 757 Type: desktop-application 758 758 ID: org.lliurex.wine64 759 Package: wine64759 Package: zero-installer-wine64 760 760 Name: 761 761 C: Wine64
Note: See TracChangeset
for help on using the changeset viewer.