Changeset 4278 for lliurex-store
- Timestamp:
- Apr 18, 2017, 6:29:03 PM (4 years ago)
- Location:
- lliurex-store/trunk/fuentes/lliurex-store-cli/usr/share/lliurex-store
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/lliurex-store-cli/usr/share/lliurex-store/files/error.json
r3860 r4278 2 2 "-1":"Unknown error. Please use the --debug option", 3 3 "0":"succesful", 4 "1":" not found",4 "1":"package not found", 5 5 "2":"no info available", 6 6 "3":"package not installed", -
lliurex-store/trunk/fuentes/lliurex-store-cli/usr/share/lliurex-store/lliurex-store-cli.py
r4272 r4278 33 33 if action in actions and not actionList[action]: 34 34 if status['status']==0: 35 print (_(u"Results for ")+ action)35 print (_(u"Results for ")+_(action)) 36 36 for data in results[action]: 37 37 if action=='info': … … 84 84 print(color.DARKCYAN+package+color.END+": "+data['summary']+' ('+','.join(data['categories'])+')'+' ('+msg+')') 85 85 except Exception as e: 86 print( 'Error listing :'+str(e))86 print(_(u'Error listing :')+str(e)) 87 87 pass 88 88 elif action=='install': … … 93 93 print(data) 94 94 else: 95 msg= u"Package"95 msg=_(u"Unable to")+' '+_(action) 96 96 failed=parms[action] 97 if (action==' install' or action=='remove'):98 msg=_(u"Unable to ")+' '+action97 if (action=='search' or action=='info'): 98 msg=_(u"Unable to show") 99 99 if action=='list': 100 msg=_(u"Category")100 # msg=_(u"Category") 101 101 failed=', '.join(failed) 102 102 103 print (color.RED+_(u"Error")+": "+color.END+msg+' '+failed+' '+status['msg'])103 print (color.RED+_(u"Error")+": "+color.END+msg+' '+failed+' ('+_(status['msg'])+')') 104 104 printed=True 105 105 return(printed)
Note: See TracChangeset
for help on using the changeset viewer.