Changeset 6862


Ignore:
Timestamp:
Feb 19, 2018, 9:49:54 AM (18 months ago)
Author:
kbut
Message:

fix typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/lmd-server.install/usr/sbin/lmd-fix-architecture

    r6861 r6862  
    1717                with open(os.path.join(self.LMD_CONFIG_BASE, self.identifier + ".json"), 'r') as data_file:
    1818                        lmd_config = json.load(data_file)
    19                 command = ['ltsp-chroot -a {identifier} dpkg-architecture | grep DEB_BUILD_ARCH_CPU'.format(identifier=self.identifier)]
    20                 arch = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE).communicate()[0].strip()
     19                command = ["ltsp-chroot -a {identifier} dpkg-architecture | grep DEB_BUILD_ARCH_CPU | awk -F '=' '{{print $2}}".format(identifier=self.identifier)]
     20                arch = subprocess.Popen(command,shell=True,stdout=subprocess.PIPE).communicate()[0].decode('utf-8').strip()
    2121                if arch in self.architectures:
    2222                        lmd_config['arch'] = arch
Note: See TracChangeset for help on using the changeset viewer.