Changeset 6655
- Timestamp:
- Jan 23, 2018, 12:36:00 PM (3 years ago)
- Location:
- epi/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
epi/trunk/fuentes/epi-cli/__init__.py
r6521 r6655 197 197 error=self.readErrorOutput(output[1]) 198 198 if error: 199 msg_log 200 print(' [EPIC]: Installation aborted. Error preparing system:' +'\n'+str(output[1]))199 msg_log='Installation aborted. Error preparing system:' '\n' + str(output[1]) 200 print(' [EPIC]: ' +msg_log) 201 201 self.write_log(msg_log) 202 202 return False … … 334 334 error=True 335 335 336 if error:337 self.epicore.zerocenter_feedback(order,'install',result)338 self.epicore.remove_repo_keys()339 return 1336 if error: 337 self.epicore.zerocenter_feedback(order,'install',result) 338 self.epicore.remove_repo_keys() 339 return 1 340 340 341 341 msg_log='Installation completed successfully' -
epi/trunk/fuentes/python3-epi/epimanager.py
r6611 r6655 278 278 else: 279 279 for item in self.epi_conf["pkg_list"]: 280 update_repo=False 280 281 app=item["name"] 281 282 command="LANG=C LANGUAGE=en apt-cache policy %s"%app … … 283 284 output=p.communicate() 284 285 if str(output[0]) != '': 285 if str(output[0]).split("\\n")[2].split(":")[1]=="": 286 cmd="LANG=C LANGUAGE=en apt-get update; " 287 return cmd 288 289 else: 286 tmp=str(output[0]).split("\\n") 287 if len(tmp)>1: 288 if tmp[2].split(":")[1]=="": 289 update_repo=True 290 #cmd="LANG=C LANGUAGE=en apt-get update; " 291 #return cmd 292 else: 293 update_repo=True 294 #cmd="LANG=C LANGUAGE=en apt-get update; " 295 #return cmd 296 297 else: 298 update_repo=True 299 300 if update_repo: 290 301 cmd="LANG=C LANGUAGE=en apt-get update; " 291 302 return cmd
Note: See TracChangeset
for help on using the changeset viewer.