debian/0000775000000000000000000000000012163417105007170 5ustar debian/rules0000775000000000000000000000401312163416637010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp #Architecture build-arch: build build: build-indep build-indep: build-indep-stamp build-indep-stamp: configure-stamp # Add here commands to compile the indep part of the package. #$(MAKE) doc $(MAKE) touch build-indep-stamp clean: dh_testdir dh_testroot rm -f build-indep-stamp # Delete po/yum.pot so it doesn't polute the diff.gz #rm -f po/yum.pot # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) clean dh_clean install: install-indep install-indep: dh_testdir dh_testroot dh_prep dh_installdirs -i $(MAKE) install DESTDIR=$(CURDIR)/debian/yum # Remove all traces of yum-cron and yum-updatesd from the package. rm -rf $(CURDIR)/debian/yum/etc/rc.d rm -rf $(CURDIR)/debian/yum/etc/yum/yum-updatesd.conf rm -rf $(CURDIR)/debian/yum/etc/dbus-1 rm -rf $(CURDIR)/debian/yum/etc/cron.daily rm -rf $(CURDIR)/debian/yum/etc/sysconfig rm -f $(CURDIR)/debian/yum/usr/sbin/yum-updatesd rm -f $(CURDIR)/debian/yum/usr/share/man/man*/yum-updatesd* rm -f $(CURDIR)/debian/yum/usr/share/yum-cli/yumupd.py* rmdir $(CURDIR)/debian/yum/usr/sbin if [ -d $(CURDIR)/debian/yum/usr/lib/python2.7/site-packages ] ; then \ mv $(CURDIR)/debian/yum/usr/lib/python2.7/site-packages $(CURDIR)/debian/yum/usr/lib/python2.7/dist-packages ; \ fi binary-common: dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_installman dh_link dh_strip dh_compress dh_fixperms dh_python2 --skip-private dh_python2 /usr/share/yum-cli dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common binary: binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure debian/watch0000664000000000000000000000011012163416637010222 0ustar version=3 http://yum.baseurl.org/download/(\d\.\d)/yum-([\d\.]*).tar.gz debian/changelog0000664000000000000000000002274412163417066011061 0ustar yum (3.4.3-2ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - Remove alternate dependency on python-celementtree. -- Logan Rosen Fri, 28 Jun 2013 19:37:02 -0400 yum (3.4.3-2) unstable; urgency=low * Uploading to unstable. * Removed obsolete DM allowed flag. * Bumped Standard-Version to 3.9.4. * Now using compat and debhelper 9. * Ran wrap-and-sort. * Canonical VCS fields. -- Thomas Goirand Thu, 27 Jun 2013 05:01:12 +0000 yum (3.4.3-1ubuntu1) raring; urgency=low * Merge from Debian experimental (LP: #1098392). Remaining changes: - Remove alternate dependency on python-celementtree. -- Logan Rosen Fri, 11 Jan 2013 00:52:40 -0500 yum (3.4.3-1) experimental; urgency=low [ Thomas Goirand ] * New upstream version. * Added a debian/gbp.conf. * Removed all patches, removed dependency to dpatch, bumped compatibility to 8 (and dependency to debhelper 8). * Do not delete po/yum.pot anymore in debian/rules. * Using dh_prep instead of dh_clean -k. * Now using source format 3.0 (quilt) (added new debian/source/format file). * Now build-depends on python-all (>= 2.6.6-3~), dropped build-dependency on python-support, calling dh_python2 in debian/rules. * Now using my @debian.org maintainer email in debian/control. * Added missing build-target build-arch in debian/rules. * Bumped standard-version to 3.9.3. * Switched debian/copyright to machine readable format 1.0. * Kills debian/yum-updatesd.init (it shouldn't be there). * Added Vcs fields. * Fixed the watch file. * Moves $(CURDIR)/debian/yum/usr/lib/python2.7/site-packages into .../dist-packages to be Debian Python policy compliant. * Fixes urlparse: AttributeError: 'module' object has no attribute 'uses_fragment' (Closes: #679067). [ Mike Miller ] * Add patch to ensure yum uses the correct path for the RPM database. * Call dh_python2 correctly to handle python module install directories. * Add myself to Uploaders as a co-maintainer. * Completely remove all traces of yum-updatesd. (Closes: #579678) * Update Vcs-* fields to use collab-maint repository. -- Thomas Goirand Wed, 27 Jun 2012 15:37:12 +0000 yum (3.2.25-2ubuntu1) quantal; urgency=low * Merge from Debian unstable. Remaining changes: - Removed alternate dependency on python-celementtree. -- Logan Rosen Wed, 25 Jul 2012 03:40:01 -0400 yum (3.2.25-2) unstable; urgency=low * Fixes crash at start of yum with error: urlparse: AttributeError: * 'module' object has no attribute 'uses_fragment' (Closes: #679067). * Using zigo@debian.org as maintainer email. -- Thomas Goirand Wed, 27 Jun 2012 15:19:14 +0000 yum (3.2.25-1ubuntu2) lucid; urgency=low * Closed the wrong bug in the changelog. (LP: #512121) -- Charlie Smotherman Sun, 24 Jan 2010 16:32:27 -0600 yum (3.2.25-1ubuntu1) lucid; urgency=low * Removed alternate dependency on python-celementtree, which now part of python and python-celementtree is due for removal. (LP: #512111). -- Charlie Smotherman Sun, 24 Jan 2010 16:32:27 -0600 yum (3.2.25-1) unstable; urgency=low * New upstream version. * Not using the yumpackage@gplhost.com, but my "normal" email address again as maintainer address, as my employee Manuel is no longer willing to help, as he resigned from his position at GPLHost. * Removed patches that are no longer needed thanks to my work with upstream: - yum.conf.5 has been corrected thanks to a patch I sent to upstream, so a patch in Debian is no longer needed, same for the yum.8 man page. - python-iniparse has been uploaded to SID, so a patch to not use it is as well not needed anymore. - python-gpgme is now in SID. - The version of logrotate in SID now supports yearly rotating, so a patch is no longer needed as well. All together, the number of patches needed for Yum is reduced to only 1, making it A WAY more easy to maintain. * Changed dependency from just python-celementtree to python (>= 2.5) | python-celementtree as python-celementtree is now part of python2.5, and that python2.4 is to be removed from SID (Closes: #562455). * Bumped Standards-Version. * Reworked a bit the debian/copyright so it's more accurate. * Reworked the debian/README.Debian, wrote a debian/source. * Switched from Required to Should in the debian/yum-updatesd.init, added a $local_fs as Should also, and did some tiny cleanups in debian/rules. -- Thomas Goirand Sat, 26 Dec 2009 13:05:37 +0800 yum (3.2.23-1) unstable; urgency=low * New upstream release * Removed the patch for the Makefile that is now useless (upstream changed it). * Compat is now 5. -- GPLHost yum packaging team Sat, 13 Jun 2009 19:23:21 +0800 yum (3.2.21-2) unstable; urgency=low * Moved python-dev, python-support and intltool to Build-Depends-Indep: * Added a Homepage: field and a watch file * Added mechanismes in debian/rules to preserve po/yum.pot that is created each time by the build process (the .diff.gz was big for nothing, this is better now). * Added a patch so that etc/yum.logrotate uses monthly as logrotate option, as we received cron emails from some of our servers in production, warning that yearly is not a valid option for logrotate. The cron job for logrotate should be more quite now. * Now depending on debhelper >= 5. * Bumped StandardVersion to 3.8.1. -- GPLHost yum packaging team Wed, 01 Apr 2009 11:14:48 +0800 yum (3.2.21-1) unstable; urgency=low * Adopting package. Former maintainer retired from Debian recently, and co-maintainer expressed he had no further interest in yum in http://lists.debian.org/debian-release/2009/02/msg00413.html. I (Thomas Goirand) will be co-maintaining this package with my employee Manuel Amador: I feel comfortable with Debian packaging, while Manuel is a python and RPM system specialist. The maintainer email address of this package (signed with my Debian GPG key) forwards to both of us. * New upstream release * Added Dm-Upload-Allowed: yes field. * Forward-ported documentation, sqlite and Makefile patch from last Debian package in Lenny, added build-dep dpatch (patches are now separate and not generated in the diff.gz which I think is ugly packaging). * Removed upstream dependency on python-iniparse and patched to be able to work without it as python-iniparse is not in Debian (yet). * Removed Debian dependency on python-pyme (which is a mistake of the last NMU that thought it was the same as python-gpgme), removed upstream dependency on python-gpgme, patched to work without it (Closes: #496137). * Note: this is only a temporary package before we can have python-gpgme, and python-iniparse inside Debian. This package version aims at a qa upload to fix the current situation in Lenny where the yum package is broken because it is trying to call a python module that doesn't exists in Lenny (see src/misc.py and our patch for it). It seems that 2 other maintainers have already started working on packaging python-gpgme and python-iniparse. -- GPLHost yum packaging team Sun, 01 Mar 2009 18:08:07 +0800 yum (3.2.12-1.2) unstable; urgency=low * Non-maintainer upload * Updated for compatibility with current python-pyme (Closes: #490368) based on patch by Martin Meredith - Changed import in yum/misc.py - Set versioned dependency on python-pyme -- Ben Hutchings Mon, 28 Jul 2008 23:20:59 +0100 yum (3.2.12-1.1) unstable; urgency=medium * Non-maintainer upload. * Fix FTBFS with dash (Closes: #471758) * Fix 'copyright-without-copyright-notice' lintian warning. -- Chris Lamb Fri, 11 Apr 2008 19:21:33 +0100 yum (3.2.12-1) unstable; urgency=low * New upstream release. * Add a build-dep on intltool. -- Andres Salomon Fri, 07 Mar 2008 15:02:44 +0000 yum (3.2.10-1) unstable; urgency=low * New upstream release (Closes: #364105). * Add myself as a co-maintainer. * Fix up yum-updatesd stuff, including adding an init script. * Silence some lintian warnings/errors. * Add dependencies on some additional python modules; python-pyme, python-sqlitecachec, python-sqlite. * Patch yum/misc.py to use the proper module path; pyme.gpgme, rather than just gpgme. * Patch yum/sqlutils.py to use Qmark format rather than sqlite1 syntax; the version_info check ends up being incorrect. -- Andres Salomon Tue, 05 Feb 2008 18:14:38 +0000 yum (2.4.0-3.1) unstable; urgency=medium * Non-maintainer upload. * Update package to the last python policy (Closes: #380993). * Urgency set to medium for RC bug fix. * Bump Standards-Version to 3.7.2. * Fixing bashism in docs/Makefile. * removing debian/*.ex files. -- Pierre Habouzit Wed, 30 Aug 2006 13:43:22 +0200 yum (2.4.0-3) unstable; urgency=low * Further corrections to the dependancies (Closes: #340914) -- Anand Kumria Mon, 28 Nov 2005 02:46:37 +1100 yum (2.4.0-2) unstable; urgency=low * Add dependancy on python-urlgrabber -- Anand Kumria Mon, 31 Oct 2005 05:08:38 +1100 yum (2.4.0-1) unstable; urgency=low * Initial release -- Anand Kumria Wed, 26 Oct 2005 03:48:14 +1000 debian/compat0000664000000000000000000000000212163416674010400 0ustar 9 debian/README.source0000664000000000000000000000034512163416637011362 0ustar This package uses the old dpatch system, and not yet Quilt, so it's easy to backport to Lenny. Please bare with me. As soon as Squeeze will be out, I'll switch to using the more powerful Quilt format for the next Debian release. debian/copyright0000664000000000000000000000600112163416637011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: yum Upstream-Contact: yum development Source: http://yum.baseurl.org/ Files: debian/* Copyright: (c) 2008-2009, Thomas Goirand (c) 2005-2006, Anand Kumria License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License (LGPL) v2.1 may be found in /usr/share/common-licenses/LGPL-2.1 Files: * Copyright: (c) 2003-2004, Seth Vidal, Duke University (c) 2005-2009, Seth Vidal . YUM aythors, list taken from the upstream AUTHORS file, email addresses taken from the mailing list (as there was none in the AUTHORS file) where patches are sent and few names added from there: . Seth Vidal (lead) Jeremy Katz Adrian Likins Matthew Miller Michael Stenner Icon Riabitsev Ryan Tomayko Paul Nasrat Robert G. Brown Hollis Blanchard Grigory Bakunov Menno Smits Gijs Hollestelle Terje Rosten Luke Macken James Bowes Tim Lauridsen Florian Festi Jack Neely James Antill Panu Matilainen Tambet Ingo Mike Bonnet Ville-Pekka Vainio Ville Skyttä . Original Yup people: Bryan Stillwell Stephen Edie Dan Burcaw Troy Bengegerdes License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 debian/source/0000775000000000000000000000000012163417105010470 5ustar debian/source/format0000664000000000000000000000001412163416637011707 0ustar 3.0 (quilt) debian/README.Debian0000664000000000000000000000152512163416637011245 0ustar yum for Debian -------------- Yum requires a working rpm installation. By default the rpm package does not create a completely working one lest beginners shoot themselves in the foot. You should: - mkdir /var/lib/rpm - rpm --initdb prior to using yum. Be aware that the only usage of yum in Debian is to perform chroot (Xen, UML) of Fedora, RHEL, CentOS, etc. installs. We, at GPLHost, use a specific bootstrap script for doing this with CentOS. Such script is shipped with DTC-Xen (also in Debian). This package was not, is not, and will never be, a replacement for apt-get when using Debian or any other .deb based distribution. So please, do NOT ask about it, or do not send any bug entry for this, or you'll get flamed for not reading the README.Debian as anyone should. -- Thomas Goirand Sat, 26 Dec 2009 13:05:37 +0800 debian/control0000664000000000000000000000245712163416722010607 0ustar Source: yum Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Thomas Goirand Uploaders: Mike Miller Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~) Build-Depends-Indep: intltool Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/yum.git Vcs-Git: git://anonscm.debian.org/collab-maint/yum.git Standards-Version: 3.9.4 Homepage: http://yum.baseurl.org/ Package: yum Architecture: all Depends: python (>= 2.5), python-libxml2, python-rpm, python-sqlite, python-sqlitecachec, python-urlgrabber, rpm (>= 4.4.1), ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Description: Advanced front-end for rpm Yum (Yellow dog Updater, Modified) is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. . Features include: . * Multiple Repositories * Simple config file * Correct dependency calculation * Fast operation * rpm-consistent behavior * comps.xml group support, including multiple repository groups * Simple interface debian/docs0000664000000000000000000000011212163416637010046 0ustar debian/README.source debian/README.Debian FAQ PLUGINS README TODO AUTHORS debian/yum-doc.docs0000664000000000000000000000001012163416637011417 0ustar #DOCS# debian/dirs0000664000000000000000000000005212163416637010062 0ustar etc/yum/repos.d var/cache/yum var/lib/yum debian/gbp.conf0000664000000000000000000000016412163416637010621 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/patches/0000775000000000000000000000000012163417105010617 5ustar debian/patches/fixes-AttributeError-module-object-has-no-attribute-uses_fragment.patch0000664000000000000000000000175312163416637026523 0ustar Description: urlparse: AttributeError: 'module' object has no attribute 'uses_fragment' Author: Johannes Graumann Bug-Debian: http://bugs.debian.org/679067 Forwarded: no diff --git a/yum/packages.py b/yum/packages.py index 5ef9951..3d81745 100644 --- a/yum/packages.py +++ b/yum/packages.py @@ -39,7 +39,12 @@ from constants import * from operator import itemgetter import urlparse -urlparse.uses_fragment.append("media") + +try: + urlparse.uses_fragment.append("media") +except AttributeError, err: + print err + from urlgrabber.grabber import URLGrabber, URLGrabError try: diff --git a/yum/yumRepo.py b/yum/yumRepo.py index e5e9ece..3e6d78a 100644 --- a/yum/yumRepo.py +++ b/yum/yumRepo.py @@ -19,7 +19,11 @@ import re import time import types import urlparse -urlparse.uses_fragment.append("media") + +try: + urlparse.uses_fragment.append("media") +except AttributeError, err: + print err import Errors from urlgrabber.grabber import URLGrabber debian/patches/series0000664000000000000000000000017712163416637012052 0ustar fixes-AttributeError-module-object-has-no-attribute-uses_fragment.patch 02_Get-correct-rpmdb-path-from-rpm-configuration.patch debian/patches/02_Get-correct-rpmdb-path-from-rpm-configuration.patch0000664000000000000000000000464512163416637022777 0ustar Description: Get correct rpmdb path from rpm configuration Author: Mike Miller Forwarded: http://lists.baseurl.org/pipermail/yum-devel/2012-June/009354.html --- a/yum/rpmsack.py +++ b/yum/rpmsack.py @@ -222,6 +222,11 @@ class RPMDBPackageSack(PackageSackBase): self._persistdir = root + '/' + persistdir else: self._persistdir = persistdir + if hasattr(rpm, 'expandMacro'): + dbpath = rpm.expandMacro('%_dbpath') + else: + dbpath = '/var/lib/rpm' + self._rpmdbpath = os.path.normpath(root + '/' + dbpath) self._have_cached_rpmdbv_data = None self._cached_conflicts_data = None # Store the result of what happens, if a transaction completes. @@ -325,7 +330,7 @@ class RPMDBPackageSack(PackageSackBase): # We are keeping some data from before, and sometimes (Eg. remove only) # we never open the rpmdb again ... so get the mtime now. - rpmdbfname = self.root + "/var/lib/rpm/Packages" + rpmdbfname = self._rpmdbpath + "/Packages" self._cached_rpmdb_mtime = os.path.getmtime(rpmdbfname) def _safe_del(x, y): @@ -1049,7 +1054,7 @@ class RPMDBPackageSack(PackageSackBase): # http://lists.rpm.org/pipermail/rpm-maint/2007-November/001719.html # ...if anything gets implemented, we should change. rpmdbvfname = self._cachedir + "/version" - rpmdbfname = self.root + "/var/lib/rpm/Packages" + rpmdbfname = self._rpmdbpath + "/Packages" if os.path.exists(rpmdbvfname) and os.path.exists(rpmdbfname): # See if rpmdb has "changed" ... @@ -1072,7 +1077,7 @@ class RPMDBPackageSack(PackageSackBase): if self._cached_rpmdb_mtime is None: return # We haven't loaded any packages!!! - rpmdbfname = self.root + "/var/lib/rpm/Packages" + rpmdbfname = self._rpmdbpath + "/Packages" if not os.path.exists(rpmdbfname): return # haha @@ -1268,7 +1273,7 @@ class RPMDBPackageSack(PackageSackBase): self._name2pkg.setdefault(po.name, []).append(po) self._tup2pkg[po.pkgtup] = po if self.__cache_rpmdb__ and self._cached_rpmdb_mtime is None: - rpmdbfname = self.root + "/var/lib/rpm/Packages" + rpmdbfname = self._rpmdbpath + "/Packages" self._cached_rpmdb_mtime = os.path.getmtime(rpmdbfname) return po