Changeset 3390 for lliurex-up/trunk


Ignore:
Timestamp:
Jan 20, 2017, 1:15:18 PM (3 years ago)
Author:
kbut
Message:

fix bug with language variable

Location:
lliurex-up/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-up/trunk/fuentes/debian/control

    r3313 r3390  
    3434Package: lliurex-up-cli
    3535Architecture: all
    36 Depends: ${shlibs:Depends}, ${misc:Depends}, lliurex-up-core (= ${binary:Version})
     36Depends: ${shlibs:Depends}, ${misc:Depends}, lliurex-up-core (= ${binary:Version}), python, python-clint
    3737Description: Command line interface to update system
    3838 CLI Interface to update system.
  • lliurex-up/trunk/fuentes/python-lliurex-up/lliurex/lliurexup/__init__.py

    r3257 r3390  
    9494
    9595        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)
    9797                subprocess.Popen(command,shell=True).communicate()
    9898
     
    109109                        Options are Apt options
    110110                '''
    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)
    112112                p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE)
    113113                installed = None
     
    149149                        This function install lliurex-up
    150150                '''
    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)
    152152                p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE)
    153153                poutput,perror = p.communicate()
     
    260260                        This function install lliurex-up
    261261                '''
    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)
    263263                p = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE)
    264264                poutput,perror = p.communicate()
     
    279279                packageInfo = {}
    280280                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)
    282282                rawoutputpsimulate = psimulate.stdout.readlines()
    283283                rawpackagestoinstall = [ aux.strip() for aux in rawoutputpsimulate if aux.startswith('Inst') ]
     
    297297                        packageInfo[package].pop('raw')
    298298                        #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))
    300300                        #packageInfo[package]['icon'] =
    301301                return packageInfo
Note: See TracChangeset for help on using the changeset viewer.