Changeset 6950
- Timestamp:
- Mar 2, 2018, 11:53:56 AM (22 months ago)
- Location:
- lliurex-ubiquity-addons/trunk/fuentes/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-ubiquity-addons/trunk/fuentes/src/UbiLliureXExtraPackages.py
r6834 r6950 102 102 103 103 os.system("mkdir -p /var/lib/ubiquity/") 104 105 # Using langpacks file instead of apt-installed. Ubiquity uses cdrom repository only when using apt-installed list 106 list_file="/var/lib/ubiquity/langpacks" 107 104 108 #Clean the file 105 109 for p in all_avaiable_packages: 106 f = open( "/var/lib/ubiquity/apt-installed","r")110 f = open(list_file,"r") 107 111 lines = f.readlines() 108 112 f.close() 109 f = open( "/var/lib/ubiquity/apt-installed","w")113 f = open(list_file,"w") 110 114 for line in lines: 111 115 if line!=p+"\n": … … 114 118 115 119 for p in list_packages: 116 f = open( "/var/lib/ubiquity/apt-installed","a")120 f = open(list_file,"a") 117 121 f.write(str(p)+"\n") 118 122 f.close() -
lliurex-ubiquity-addons/trunk/fuentes/src/UbiLliureXFlash.py
r6834 r6950 58 58 def ok_handler(self): 59 59 list_packages = [] 60 61 # Using langpacks file instead of apt-installed. Ubiquity uses cdrom repository only when using apt-installed list 62 list_file="/var/lib/ubiquity/langpacks" 60 63 if self.ui.installFlash.get_active(): 61 64 os.system("mkdir -p /var/lib/ubiquity/") 62 f = open( "/var/lib/ubiquity/apt-installed","a")65 f = open(list_file,"a") 63 66 f.write("adobe-flashplugin\n") 64 67 f.close() 65 68 else: 66 if os.path.exists( "/var/lib/ubiquity/apt-installed"):67 f = open( "/var/lib/ubiquity/apt-installed","r")69 if os.path.exists(list_file): 70 f = open(list_file,"r") 68 71 lines = f.readlines() 69 72 f.close() 70 f = open( "/var/lib/ubiquity/apt-installed","w")73 f = open(list_file,"w") 71 74 for line in lines: 72 75 if line!="adobe-flashplugin"+"\n":
Note: See TracChangeset
for help on using the changeset viewer.