- Timestamp:
- Mar 28, 2017, 4:37:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-up/trunk/fuentes/lliurex-up/usr/share/lliurex-up/LliurexUpConnect.py
r4053 r4054 330 330 331 331 changelog_file=os.path.join(self.llxUpCore.changelogsPath,package) 332 changelog="Changelog not found" 332 333 333 334 if not os.path.exists(changelog_file): 334 os.system('LANG=C LANGUAGE=en apt-get changelog %s > %s'%(package,changelog_file)) 335 336 try: 337 cmd="sed -i '/Get:1 http/d' " + str(changelog_file) 338 os.system(cmd) 339 f=open(changelog_file,"r") 340 changelog=f.readlines() 341 f.close() 342 343 except Exception as e: 344 changelog="Changelog not found" 335 #os.system('LANG=C LANGUAGE=en apt-get changelog %s > %s'%(package,changelog_file)) 336 cmd='LANG=C LANGUAGE=en apt-get changelog %s > %s'%(package,changelog_file) 337 p=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 338 poutput,perror=p.communicate() 339 340 if len(perror)>0: 341 pass 342 else: 343 344 try: 345 cmd="sed -i '/Get:1 http/d' " + str(changelog_file) 346 os.system(cmd) 347 f=open(changelog_file,"r") 348 changelog=f.readlines() 349 f.close() 350 351 except Exception as e: 352 changelog="Changelog not found" 345 353 346 354 return changelog
Note: See TracChangeset
for help on using the changeset viewer.