diff options
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/layman/ChangeLog | 8 | ||||
-rw-r--r-- | app-portage/layman/files/layman-1.4.2-python-compatbility-fix.patch | 171 | ||||
-rw-r--r-- | app-portage/layman/layman-1.4.2-r1.ebuild (renamed from app-portage/layman/layman-1.4.2.ebuild) | 2 |
3 files changed, 123 insertions, 58 deletions
diff --git a/app-portage/layman/ChangeLog b/app-portage/layman/ChangeLog index 5e28bef6a5e5..ef4537296e81 100644 --- a/app-portage/layman/ChangeLog +++ b/app-portage/layman/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-portage/layman # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/layman/ChangeLog,v 1.135 2011/04/25 19:43:01 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/layman/ChangeLog,v 1.136 2011/04/27 13:23:50 idl0r Exp $ + +*layman-1.4.2-r1 (27 Apr 2011) + + 27 Apr 2011; Christian Ruppert <idl0r@gentoo.org> -layman-1.4.2.ebuild, + +layman-1.4.2-r1.ebuild, files/layman-1.4.2-python-compatbility-fix.patch: + Revision bump. The "python-compatbility-fix.patch" has been extended. 25 Apr 2011; Christian Ruppert <idl0r@gentoo.org> layman-1.4.2.ebuild, +files/layman-1.4.2-python-compatbility-fix.patch: diff --git a/app-portage/layman/files/layman-1.4.2-python-compatbility-fix.patch b/app-portage/layman/files/layman-1.4.2-python-compatbility-fix.patch index 8b7d39a12f5b..217ab0ad1448 100644 --- a/app-portage/layman/files/layman-1.4.2-python-compatbility-fix.patch +++ b/app-portage/layman/files/layman-1.4.2-python-compatbility-fix.patch @@ -1,89 +1,148 @@ -From a7aac809d740a7393c9fd20f701802a7786bba42 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec <brian.dolbec@gmail.com> -Date: Fri, 22 Apr 2011 23:53:19 -0700 -Subject: [PATCH] fix bug 363797 python-2.5 test errors. +From 35815463599b2aa843edcc976920d996f6e4b0e2 Mon Sep 17 00:00:00 2001 +From: dol-sen <brian.dolbec@gmail.com> +Date: Wed, 27 Apr 2011 03:58:06 -0700 +Subject: [PATCH] fix broken *args for python 2.5 and 2.6+. + Also fixes my previous fix & resultant breakage. + Passes tests for all python versions supported. --- + bin/layman | 2 +- layman/overlays/bzr.py | 2 +- - layman/overlays/cvs.py | 4 ++-- layman/overlays/darcs.py | 2 +- layman/overlays/git.py | 2 +- layman/overlays/mercurial.py | 2 +- - 5 files changed, 6 insertions(+), 6 deletions(-) + layman/overlays/rsync.py | 2 +- + layman/overlays/source.py | 4 ++-- + layman/overlays/svn.py | 4 ++-- + layman/overlays/tar.py | 2 +- + 9 files changed, 11 insertions(+), 11 deletions(-) +diff --git a/bin/layman b/bin/layman +index b85f4fa..01ee0c8 100755 +--- a/bin/layman ++++ b/bin/layman +@@ -1,4 +1,4 @@ +-#!python ++#!/usr/bin/python + ################################################################################ + # LAYMAN - A UTILITY TO SELECT AND UPDATE GENTOO OVERLAYS + ################################################################################ diff --git a/layman/overlays/bzr.py b/layman/overlays/bzr.py -index e73c2f4..4725c98 100644 +index 4725c98..b59cf6c 100644 --- a/layman/overlays/bzr.py +++ b/layman/overlays/bzr.py -@@ -61,7 +61,7 @@ class BzrOverlay(OverlaySource): +@@ -52,7 +52,7 @@ class BzrOverlay(OverlaySource): - # bzr pull --overwrite SOURCE - args = ['pull', '--overwrite', self.src] -- return self.run_command(*args, cwd=path([base, self.parent.name])) -+ return self.run_command(args, cwd=path([base, self.parent.name])) - - def supported(self): - '''Overlay type supported?''' -diff --git a/layman/overlays/cvs.py b/layman/overlays/cvs.py -index f8fc277..4924ca4 100644 ---- a/layman/overlays/cvs.py -+++ b/layman/overlays/cvs.py -@@ -83,7 +83,7 @@ class CvsOverlay(OverlaySource): - args.append(self.parent.name) - args.append(self.subpath) - -- return self.run_command(*args, cwd=base, env=dict(CVSROOT=self.src)) -+ return self.run_command(args, cwd=base, env=dict(CVSROOT=self.src)) + # bzr get SOURCE TARGET + args = ['get', self.src + '/', path([base, self.parent.name])] +- return self.run_command(*args) ++ return self.run_command(args) def sync(self, base, quiet = False): '''Sync overlay.''' -@@ -96,7 +96,7 @@ class CvsOverlay(OverlaySource): - args.append('-q') - args.append('update') - args.append('-d') -- return self.run_command(*args, cwd=path([base, self.parent.name])) -+ return self.run_command(args, cwd=path([base, self.parent.name])) - - def supported(self): - '''Overlay type supported?''' diff --git a/layman/overlays/darcs.py b/layman/overlays/darcs.py -index 7d89477..12e75ec 100644 +index 12e75ec..c062543 100644 --- a/layman/overlays/darcs.py +++ b/layman/overlays/darcs.py -@@ -60,7 +60,7 @@ class DarcsOverlay(OverlaySource): +@@ -51,7 +51,7 @@ class DarcsOverlay(OverlaySource): - # darcs pull --all SOURCE - args = ['pull', '--all', self.src] -- return self.run_command(*args, cwd=path([base, self.parent.name])) -+ return self.run_command(args, cwd=path([base, self.parent.name])) + # darcs get --partial SOURCE TARGET + args = ['get', '--partial', self.src + '/', path([base, self.parent.name])] +- return self.run_command(*args) ++ return self.run_command(args) - def supported(self): - '''Overlay type supported?''' + def sync(self, base, quiet = False): + '''Sync overlay.''' diff --git a/layman/overlays/git.py b/layman/overlays/git.py -index caa73f4..8db6c51 100644 +index 8db6c51..3b2608b 100644 --- a/layman/overlays/git.py +++ b/layman/overlays/git.py -@@ -70,7 +70,7 @@ class GitOverlay(OverlaySource): - args = ['pull'] - if quiet: +@@ -60,7 +60,7 @@ class GitOverlay(OverlaySource): args.append('-q') -- return self.run_command(*args, cwd=path([base, self.parent.name])) -+ return self.run_command(args, cwd=path([base, self.parent.name])) + args.append(fix_git_source(self.src)) + args.append(path([base, self.parent.name])) +- return self.run_command(*args) ++ return self.run_command(args) - def supported(self): - '''Overlay type supported?''' + def sync(self, base, quiet = False): + '''Sync overlay.''' diff --git a/layman/overlays/mercurial.py b/layman/overlays/mercurial.py -index 06cf59d..ea3f9da 100644 +index ea3f9da..8bf919b 100644 --- a/layman/overlays/mercurial.py +++ b/layman/overlays/mercurial.py -@@ -60,7 +60,7 @@ class MercurialOverlay(OverlaySource): +@@ -51,7 +51,7 @@ class MercurialOverlay(OverlaySource): + + # hg clone SOURCE TARGET + args = ['clone', self.src + '/', path([base, self.parent.name])] +- return self.run_command(*args) ++ return self.run_command(args) - # hg pull -u SOURCE - args = ['pull', '-u', self.src] -- return self.run_command(*args, cwd=path([base, self.parent.name])) -+ return self.run_command(args, cwd=path([base, self.parent.name])) + def sync(self, base, quiet = False): + '''Sync overlay.''' +diff --git a/layman/overlays/rsync.py b/layman/overlays/rsync.py +index 3a5a342..bf01462 100644 +--- a/layman/overlays/rsync.py ++++ b/layman/overlays/rsync.py +@@ -66,7 +66,7 @@ class RsyncOverlay(OverlaySource): + args.append(self.src + '/') + args.append(path([base, self.parent.name])) + +- return self.run_command(*args) ++ return self.run_command(args) def supported(self): '''Overlay type supported?''' +diff --git a/layman/overlays/source.py b/layman/overlays/source.py +index 2c039c9..9e7f974 100644 +--- a/layman/overlays/source.py ++++ b/layman/overlays/source.py +@@ -107,9 +107,9 @@ class OverlaySource(object): + def command(self): + return self.config['%s_command' % self.__class__.type_key] + +- def run_command(self, *args, **kwargs): ++ def run_command(self, args, **kwargs): + file_to_run = _resolve_command(self.command())[1] +- args = (file_to_run, ) + args ++ args = [file_to_run] + args + assert('pwd' not in kwargs) # Bug detector + + cwd = kwargs.get('cwd', None) +diff --git a/layman/overlays/svn.py b/layman/overlays/svn.py +index 2a30198..092d786 100644 +--- a/layman/overlays/svn.py ++++ b/layman/overlays/svn.py +@@ -56,7 +56,7 @@ class SvnOverlay(OverlaySource): + args.append(self.src + '/@') + args.append(path([base, self.parent.name])) + +- return self.run_command(*args) ++ return self.run_command(args) + + def sync(self, base, quiet = False): + '''Sync overlay.''' +@@ -77,7 +77,7 @@ class SvnOverlay(OverlaySource): + args.append('-q') + args.append(checkout_location()) + +- return self.run_command(*args) ++ return self.run_command(args) + + def supported(self): + '''Overlay type supported?''' +diff --git a/layman/overlays/tar.py b/layman/overlays/tar.py +index 919f4df..612b6b6 100644 +--- a/layman/overlays/tar.py ++++ b/layman/overlays/tar.py +@@ -128,7 +128,7 @@ class TarOverlay(OverlaySource): + + # tar -v -x -f SOURCE -C TARGET + args = ['-v', '-x', '-f', pkg, '-C', dest_dir] +- result = self.run_command(*args) ++ result = self.run_command(args) + + os.unlink(pkg) + return result -- 1.7.3.4 + diff --git a/app-portage/layman/layman-1.4.2.ebuild b/app-portage/layman/layman-1.4.2-r1.ebuild index a163d13eb4aa..7bfa7c5a5a41 100644 --- a/app-portage/layman/layman-1.4.2.ebuild +++ b/app-portage/layman/layman-1.4.2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/layman/layman-1.4.2.ebuild,v 1.5 2011/04/25 19:43:01 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/layman/layman-1.4.2-r1.ebuild,v 1.1 2011/04/27 13:23:50 idl0r Exp $ EAPI="2" PYTHON_DEPEND="2:2.5" |