Changeset 7079
- Timestamp:
- Mar 20, 2018, 1:14:34 PM (3 years ago)
- Location:
- lliurex-store/trunk/fuentes
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/appImageManager.py
r7069 r7079 19 19 class appimagemanager: 20 20 def __init__(self): 21 self.dbg= False21 self.dbg=True 22 22 self.progress=0 23 23 self.partial_progress=0 … … 35 35 self.repos={'probono':{'url':'https://dl.bintray.com/probono/AppImages', 'url_info':'https://bintray.com/probono/AppImages/$(appname)'}} 36 36 #Appimges not stored in a repo must be listed here, providing the download url and the info url (if there's any) 37 self.external_appimages= {'synfig64':{'url':'https://kent.dl.sourceforge.net/project/synfig/releases/1.2.1/linux/SynfigStudio-1.2.1-64bit.appimage','url_info':''},'synfig32':{'url':'https://kent.dl.sourceforge.net/project/synfig/releases/1.2.1/linux/SynfigStudio-1.2.1-32bit.appimage','url_info':''}}37 self.external_appimages="/usr/share/lliurex-store/files/external_appimages.json" 38 38 self.disabled=False 39 39 self.count=0 … … 47 47 def _debug(self,msg=''): 48 48 if self.dbg: 49 print ('DEBUG appimage: '+msg)49 print ('DEBUG appimage: %s'%msg) 50 50 #def debug 51 51 … … 233 233 self._debug("appImage catalogue could not be fetched: Permission denied") 234 234 #Load external apps 235 for app_name,app_info in self. external_appimages.items():235 for app_name,app_info in self._get_external_appimages().items(): 236 236 if self._chk_bundle_dir(outdir): 237 237 appimage=app_info['url'].split('/')[-1] … … 251 251 return(True) 252 252 #def _download_bundles_catalogue 253 254 def _get_external_appimages(self): 255 external_appimages={} 256 if os.path.isfile(self.external_appimages): 257 try: 258 with open(self.external_appimages) as appimages: 259 external_appimages=json.load(appimages) 260 except: 261 self._debug("Can't load %s"%self.external_appimages) 262 self._debug(external_appimages) 263 return external_appimages 253 264 254 265 def _chk_bundle_dir(self,outdir):
Note: See TracChangeset
for help on using the changeset viewer.