Changeset 3661
- Timestamp:
- Feb 17, 2017, 2:22:57 PM (4 years ago)
- Location:
- lliurex-store/trunk/fuentes
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/lliurex-store-cli/usr/share/lliurex-store/lliurex-store-cli.py
r3656 r3661 46 46 pkgName=dependency.split(';')[0] 47 47 pkgString.append(pkgName) 48 print(u'Depends: '+' '+', '.join(pkgString))48 print(u'Depends: '+' '+', '.join(pkgString)) 49 49 print("") 50 50 except Exception as e: … … 74 74 print(data) 75 75 else: 76 print (u"Error: "+str(status['status'])) 76 msg=u"Package" 77 failed=parms[action] 78 if (action=='install' or action=='remove'): 79 msg=u"Unable to"+' '+action 80 if action=='list': 81 msg=u"Section" 82 failed=', '.join(failed) 83 84 print (color.RED+u"Error"+": "+color.END+msg+' '+failed+' '+status['msg']) 77 85 printed=True 78 86 return(printed) -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/loadStore.py
r3646 r3661 4 4 gi.require_version('AppStreamGlib', '1.0') 5 5 from gi.repository import AppStreamGlib as appstream 6 import subprocess 6 7 7 8 class loadstore: … … 36 37 #def execute_action 37 38 38 def get_error(self) 39 def get_error(self): 39 40 return (self.error) 40 41 … … 77 78 if not app.get_pkgnames(): 78 79 store.remove_app(app) 80 #Check the blacklist 81 flavour=subprocess.check_output(["lliurex-version","-f"]).rstrip() 82 79 83 return (store) 80 84 #def _sanitize_store 85 -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r3656 r3661 6 6 import pkgutil 7 7 import lliurexstore.plugins as plugins 8 import json 8 9 ###### 9 10 #Ver. 1.0 of storeManager.py … … 310 311 def get_status(self,action=None): 311 312 self.lock.acquire() 313 312 314 result={} 313 315 if action in self.result: 314 316 result=self.result[action]['status'] 317 errorFile=open('/usr/share/lliurex-store/files/error.json').read() 318 errorCodes=json.loads(errorFile) 319 result['msg']=errorCodes[str(result['status'])] 315 320 self.lock.release() 316 321 return(result)
Note: See TracChangeset
for help on using the changeset viewer.