Changeset 3390
- Timestamp:
- Jan 20, 2017, 1:15:18 PM (4 years ago)
- Location:
- lliurex-up/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-up/trunk/fuentes/debian/control
r3313 r3390 34 34 Package: lliurex-up-cli 35 35 Architecture: all 36 Depends: ${shlibs:Depends}, ${misc:Depends}, lliurex-up-core (= ${binary:Version}) 36 Depends: ${shlibs:Depends}, ${misc:Depends}, lliurex-up-core (= ${binary:Version}), python, python-clint 37 37 Description: Command line interface to update system 38 38 CLI Interface to update system. -
lliurex-up/trunk/fuentes/python-lliurex-up/lliurex/lliurexup/__init__.py
r3257 r3390 94 94 95 95 def updateCacheApt(self,options=""): 96 command = "LANG=C apt-get update {options}".format(options=options)96 command = "LANG=C LANGUAGE=en apt-get update {options}".format(options=options) 97 97 subprocess.Popen(command,shell=True).communicate() 98 98 … … 109 109 Options are Apt options 110 110 ''' 111 command = "LANG=C apt-cache policy {package} {options}".format(package=package,options=options)111 command = "LANG=C LANGUAGE=en apt-cache policy {package} {options}".format(package=package,options=options) 112 112 p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE) 113 113 installed = None … … 149 149 This function install lliurex-up 150 150 ''' 151 command = "LANG=C apt-get install --force-yes --yes lliurex-up {options}".format(options=options)151 command = "LANG=C LANGUAGE=en apt-get install --force-yes --yes lliurex-up {options}".format(options=options) 152 152 p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE) 153 153 poutput,perror = p.communicate() … … 260 260 This function install lliurex-up 261 261 ''' 262 command = "LANG=C apt-get install --force-yes --yes " + flavourToInstall + "{options} ".format(options=options)262 command = "LANG=C LANGUAGE=en apt-get install --force-yes --yes " + flavourToInstall + "{options} ".format(options=options) 263 263 p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE) 264 264 poutput,perror = p.communicate() … … 279 279 packageInfo = {} 280 280 self.updateCacheApt("") 281 psimulate = subprocess.Popen('LANG=C apt-get dist-upgrade -sV',shell=True,stdout=subprocess.PIPE)281 psimulate = subprocess.Popen('LANG=C LANGUAGE=en apt-get dist-upgrade -sV',shell=True,stdout=subprocess.PIPE) 282 282 rawoutputpsimulate = psimulate.stdout.readlines() 283 283 rawpackagestoinstall = [ aux.strip() for aux in rawoutputpsimulate if aux.startswith('Inst') ] … … 297 297 packageInfo[package].pop('raw') 298 298 #packageInfo[package]['changelog'] = os.path.join(self.changelogsPath,package) 299 #os.system('LANG=C apt-get changelog %s > %s%s'%(package,self.changelogsPath,package))299 #os.system('LANG=C LANGUAGE=en apt-get changelog %s > %s%s'%(package,self.changelogsPath,package)) 300 300 #packageInfo[package]['icon'] = 301 301 return packageInfo
Note: See TracChangeset
for help on using the changeset viewer.