mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
app-arch/createrepo: cleanup
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST createrepo-0.10.3.tar.gz 66004 SHA256 cd54621bef94c4a5ebffb5f19382050452d3e69763d2db4121c5d3881509ea6d SHA512 9e56625361dbc54667b42a4a8e84f46fd80dcb8d92ec9ff8532107981550612f946438061cc00b14c02f45aad18b33085bb0511a200715ba6d7c019785604a6e WHIRLPOOL 35de55956d7a69d6e7e5a32753336fc7808101330bb635e0712a06a76f7c5bd506b7cbaf0c728c099afe6a5927ad315e26ef44ce5cb57f6a9bb512dcf0af78df
|
||||
DIST createrepo-0.10.4.tar.gz 71186 SHA256 f850504a3ec7e556aaaa626d487e8b0def84ffea666fd30774cbbd575c128261 SHA512 28858d7d886e1132d001bb1bd847657502eb132133e39a4d19a4c8a080728c6b6f344283bc6ee21ce8def5b7980cbca7ed78299adeb71ce1012751268f6740ec WHIRLPOOL bd75e04ac4b04cb32d9359debff0413352abbddd7ea248a401eea353cb6fccbaa9d9a79e15ac2e81cd3e0d56fbd0f37b25f44c5cd94238ddf4a8cb9f6277a774
|
||||
DIST createrepo-0.9.9-head.patch.bz2 14380 SHA256 74bdaea63c5f72d8814b0be5bc4b497188c8bd7c10fc3d66b6fd4058f98b58b8 SHA512 6d5e970e1489cef85cebedc3805bb1496c743c361b9bdda3d8df290f8e588d7d960272cf3c18e9c48fcdaf6a003b784a87aaea218da1ad68bf77446600980554 WHIRLPOOL 571319be8e0a7a559aa941046ea098e197f539d5156df12f3ac5ad87b133dbd7fc844ad208b7163110f8393a06eeb5c3a2fca2d09c870b3b59f457c6cb52634a
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml'
|
||||
|
||||
inherit python-single-r1 bash-completion-r1 eutils
|
||||
|
||||
DESCRIPTION="Creates a common rpm-metadata repository"
|
||||
HOMEPAGE="http://createrepo.baseurl.org/"
|
||||
SRC_URI="http://createrepo.baseurl.org/download/${P}.tar.gz
|
||||
https://dev.gentoo.org/~pacho/maintainer-needed/${PN}-0.9.9-head.patch.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/urlgrabber-2.9.0[${PYTHON_USEDEP}]
|
||||
>=app-arch/rpm-4.1.1[python,${PYTHON_USEDEP}]
|
||||
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||||
>=app-arch/deltarpm-3.6_pre20110223[python,${PYTHON_USEDEP}]
|
||||
dev-python/pyliblzma[${PYTHON_USEDEP}]
|
||||
>=sys-apps/yum-3.4.3
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
python_export PYTHON_SITEDIR
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-ten-changelog-limit.patch"
|
||||
epatch "${FILESDIR}/${P}-pkglist.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${ED}" \
|
||||
PYTHON=true \
|
||||
compdir="$(get_bashcompdir)" \
|
||||
PKGDIR="${PYTHON_SITEDIR}/${PN}"
|
||||
dodoc ChangeLog README
|
||||
python_fix_shebang "${ED}"
|
||||
python_optimize
|
||||
python_optimize "${ED}/usr/share/createrepo"
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user