Changeset 5674 for lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/zmdManager.py
- Timestamp:
- Aug 8, 2017, 1:26:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/zmdManager.py
r5133 r5674 204 204 # self.result['data'].append(appInfo) 205 205 # self.result.append(appInfo) 206 if appInfo['state']!='installed': 207 #There're some zomandos that may be unregistered, so we check again 208 zmdApp='/usr/share/zero-center/applications/'+zmd+".app" 209 print("*******************") 210 print(zmdApp) 211 print("*******************") 212 if os.path.isfile(zmdApp): 213 f=open(zmdApp,'r') 214 fileContent=f.readlines() 215 f.close 216 sw_service=False 217 for line in fileContent: 218 if line.startswith('Service'): 219 sw_service=True 220 if 'True' not in line: 221 print(line) 222 appInfo['state']='installed' 223 if sw_service==False: 224 appInfo['state']='installed' 225 206 226 return(appInfo) 207 227 #def _get_Zmd_Info
Note: See TracChangeset
for help on using the changeset viewer.