Changeset 3404
- Timestamp:
- Jan 25, 2017, 2:15:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zero-lliurex-flavours/trunk/fuentes/install-files/usr/share/lliurex-flavours-selector/lliurex-flavours-selector.py
r3403 r3404 12 12 import platform 13 13 import subprocess 14 from subprocess import PIPE 14 import glob 15 15 import sys 16 16 import datetime … … 441 441 p=subprocess.Popen([command],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 442 442 output=p.communicate() 443 #Check if we're installing infantil flavour 444 if "lliurex-meta-infantil" in command: 445 reposInfantil=glob.glob("etc/apt/sources.list.d/*recursos*") 446 for repo in reposInfantil: 447 os.remove(repo) 448 cmdInfantil=("apt-get","update") 449 x=subprocess.Popen(cmdInfantil,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 450 x.communicate() 443 451 self.thread_ret=p.returncode 444 452 self.flavour_error=output[1] … … 577 585 if item.info["pkg"]=="lliurex-meta-infantil": 578 586 cmdInfantil=["sudo","/usr/bin/add-apt-repository", "ppa:llxdev/recursos"] 579 x=subprocess.Popen((cmdInfantil),stdin= PIPE,stdout=PIPE)587 x=subprocess.Popen((cmdInfantil),stdin=subprocess.PIPE,stdout=subprocess.PIPE) 580 588 log_msg="Adding repository recursos" 581 589 self.log(log_msg)
Note: See TracChangeset
for help on using the changeset viewer.