Changeset 1478
- Timestamp:
- May 11, 2016, 3:24:59 PM (5 years ago)
- Location:
- ubiquity/trunk/fuentes/debian/patches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ubiquity/trunk/fuentes/debian/patches/nolangpacksinatall.patch
r1476 r1478 1 diff -Nuar ubiquity .old/ubiquity/install_misc.py ubiquity/ubiquity/install_misc.py2 --- ubiquity .orig/ubiquity/install_misc.py 2016-05-11 14:38:37.819777667+02003 +++ ubiquity /ubiquity/install_misc.py 2016-05-11 14:28:18.855762080+02004 @@ -1108, 27 +1108,27@@1 diff -Nuar ubiquity/ubiquity/install_misc.py ubiquity.orig/ubiquity/install_misc.py 2 --- ubiquity/ubiquity/install_misc.py 2016-05-11 14:59:08.311808655 +0200 3 +++ ubiquity.orig/ubiquity/install_misc.py 2016-05-11 15:02:09.379813215 +0200 4 @@ -1108,13 +1108,26 @@ 5 5 langpacks_file = '/var/lib/ubiquity/langpacks' 6 6 if os.path.exists(langpacks_file): 7 7 osextras.unlink_force(langpacks_file) 8 - p1 = subprocess.Popen(['dpkg','-l'],stdout=subprocess.PIPE).communicate()[0]9 - p1 = p1.decode('utf-8')10 - list_packages = p1.split('\n')11 - installed_language_pack = []12 - for package in list_packages:13 - try:14 - package_name = package.split(' ')[2]15 - if package_name.startswith('language-pack-'):16 - installed_language_pack.append(package_name)17 - except:18 - pass19 8 + p1 = subprocess.Popen(['dpkg','-l'],stdout=subprocess.PIPE).communicate()[0] 20 9 + p1 = p1.decode('utf-8') … … 28 17 + except: 29 18 + pass 30 31 - if install_new: 32 + if install_new: 19 + 20 if install_new: 33 21 if save: 34 22 if not os.path.exists(os.path.dirname(langpacks_file)): … … 36 24 with open(langpacks_file, 'w') as langpacks: 37 25 for pkg in to_install: 38 if pkg not in installed_language_pack: 39 - print(pkg, file=langpacks) 40 - return [] 26 - print(pkg, file=langpacks) 27 + if pkg not in installed_language_pack: 41 28 + print(pkg, file=langpacks) 42 +return []29 return [] 43 30 else: 44 31 return to_install 45 -
ubiquity/trunk/fuentes/debian/patches/targetposthooks.patch
r1056 r1478 1 --- ubiquity.orig/scripts/install.py 2014-04-22 13:29:58.000000000 +0200 2 +++ ubiquity/scripts/install.py 2014-12-05 13:40:44.579816561 +0100 1 diff -Nuar ubiquity.orig/scripts/install.py ubiquity/scripts/install.py 2 --- ubiquity.orig/scripts/install.py 2016-05-11 14:58:57.503808383 +0200 3 +++ ubiquity/scripts/install.py 2016-05-11 15:22:29.231843935 +0200 3 4 @@ -133,6 +133,7 @@ 4 5 preexec_fn=subprocess_setup) … … 9 10 if e.errno in (errno.ENOENT, errno.EIO, errno.EFAULT, 10 11 errno.ENOTDIR, errno.EROFS): 11 @@ -721,6 +722,29 @@ 12 @@ -727,6 +728,28 @@ 13 not misc.execute('losetup', '-d', dev)): 12 14 raise install_misc.InstallStepError( 13 15 "Failed to detach loopback device %s" % dev) 14 15 16 + def run_target_post_hooks(self): 16 17 + """Run hook scripts from /usr/lib/ubiquity/target-postconfig. This allows … … 35 36 + self.db.progress('STEP', 1) 36 37 + self.db.progress('STOP') 37 + 38 38 39 def select_ecryptfs(self): 39 40 """Is ecryptfs in use by an existing user? If so, keep it installed. 40
Note: See TracChangeset
for help on using the changeset viewer.