summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2014-12-25 11:12:05 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2014-12-25 11:12:05 +0000
commit8880e4566cc09a2ebfd09201696b3d7aa1c51b2b (patch)
treeaf44c081a8c244edcae36ca1ae4d305be6c4c489 /app-arch/createrepo
parentConvert to distutils-r1. (diff)
downloadgentoo-2-8880e4566cc09a2ebfd09201696b3d7aa1c51b2b.tar.gz
gentoo-2-8880e4566cc09a2ebfd09201696b3d7aa1c51b2b.tar.bz2
gentoo-2-8880e4566cc09a2ebfd09201696b3d7aa1c51b2b.zip
Add some patches
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
Diffstat (limited to 'app-arch/createrepo')
-rw-r--r--app-arch/createrepo/ChangeLog7
-rw-r--r--app-arch/createrepo/createrepo-0.10.3.ebuild9
-rw-r--r--app-arch/createrepo/files/createrepo-0.10.3-pkglist.patch15
-rw-r--r--app-arch/createrepo/files/createrepo-0.10.3-ten-changelog-limit.patch11
4 files changed, 39 insertions, 3 deletions
diff --git a/app-arch/createrepo/ChangeLog b/app-arch/createrepo/ChangeLog
index 7f720f33480f..d21a3cf0867a 100644
--- a/app-arch/createrepo/ChangeLog
+++ b/app-arch/createrepo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-arch/createrepo
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/ChangeLog,v 1.8 2014/12/25 11:03:49 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/ChangeLog,v 1.9 2014/12/25 11:12:05 alonbl Exp $
+
+ 25 Dec 2014; Alon Bar-Lev <alonbl@gentoo.org>
+ +files/createrepo-0.10.3-pkglist.patch,
+ +files/createrepo-0.10.3-ten-changelog-limit.patch, createrepo-0.10.3.ebuild:
+ Add some patches
*createrepo-0.10.3 (25 Dec 2014)
diff --git a/app-arch/createrepo/createrepo-0.10.3.ebuild b/app-arch/createrepo/createrepo-0.10.3.ebuild
index 5c62c13689e0..01ad5c53db68 100644
--- a/app-arch/createrepo/createrepo-0.10.3.ebuild
+++ b/app-arch/createrepo/createrepo-0.10.3.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/createrepo-0.10.3.ebuild,v 1.1 2014/12/25 11:03:49 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/createrepo-0.10.3.ebuild,v 1.2 2014/12/25 11:12:05 alonbl Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE='xml'
-inherit python-single-r1 bash-completion-r1
+inherit python-single-r1 bash-completion-r1 eutils
DESCRIPTION="Creates a common rpm-metadata repository"
HOMEPAGE="http://createrepo.baseurl.org/"
@@ -35,6 +35,11 @@ pkg_setup() {
python_export PYTHON_SITEDIR
}
+src_prepare() {
+ epatch "${FILESDIR}/${P}-ten-changelog-limit.patch"
+ epatch "${FILESDIR}/${P}-pkglist.patch"
+}
+
src_compile() {
:
}
diff --git a/app-arch/createrepo/files/createrepo-0.10.3-pkglist.patch b/app-arch/createrepo/files/createrepo-0.10.3-pkglist.patch
new file mode 100644
index 000000000000..59fffc10ede1
--- /dev/null
+++ b/app-arch/createrepo/files/createrepo-0.10.3-pkglist.patch
@@ -0,0 +1,15 @@
+diff --git a/createrepo/__init__.py b/createrepo/__init__.py
+index b1875f6..85f2a3d 100644
+--- a/createrepo/__init__.py
++++ b/createrepo/__init__.py
+@@ -400,7 +400,9 @@ class MetaDataGenerator:
+ if self.conf.update:
+ self._setup_old_metadata_lookup()
+ # rpms we're going to be dealing with
+- if self.conf.pkglist:
++ if isinstance(self.conf.pkglist, MetaSack):
++ packages = self.conf.pkglist
++ elif self.conf.pkglist:
+ packages = []
+ for pkg in self.conf.pkglist:
+ if '://' in pkg: # remote
diff --git a/app-arch/createrepo/files/createrepo-0.10.3-ten-changelog-limit.patch b/app-arch/createrepo/files/createrepo-0.10.3-ten-changelog-limit.patch
new file mode 100644
index 000000000000..07b61067462e
--- /dev/null
+++ b/app-arch/createrepo/files/createrepo-0.10.3-ten-changelog-limit.patch
@@ -0,0 +1,11 @@
+--- createrepo/__init__.py~ 2011-01-26 12:14:30.000000000 -0500
++++ createrepo/__init__.py 2011-01-26 12:34:17.291441719 -0500
+@@ -96,7 +96,7 @@
+ self.mdtimestamp = 0
+ self.directory = None
+ self.directories = []
+- self.changelog_limit = None # needs to be an int or None
++ self.changelog_limit = 10 # needs to be an int or None
+ self.unique_md_filenames = True
+ self.additional_metadata = {} # dict of 'type':'filename'
+ self.revision = str(int(time.time()))