Compare commits

...
Sign in to create a new pull request.

19 commits

Author SHA1 Message Date
Michal Domonkos
0d8aaac852 Superseded by DNF. For details, see: https://fedoraproject.org/wiki/Changes/Retire_YUM_3 2019-02-26 11:49:24 +01:00
Kevin Fenzi
688cfb5e58 Fix FTBFS by explicitly using python2. Fixes bug #1606775 2019-02-11 12:02:19 -08:00
Fedora Release Engineering
84805d96ce - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 13:04:26 +00:00
358c713d03 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:56 +01:00
57ec115c45
%{python_sitelib} → %{python2_sitelib}
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-29 23:11:57 +02:00
Fedora Release Engineering
8d87562061 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 09:45:27 +00:00
Jason Tibbitts
9dca136504 Remove needless use of %defattr 2018-07-09 23:44:16 -05:00
Valentina Mukhamedzhanova
9c976dddcb Remove dnf-yum dependency for making DNF-3 release possible. 2018-05-16 15:34:36 +02:00
Iryna Shcherbina
76721139ae Update Python 2 dependency declarations to new packaging standards 2018-02-14 17:27:09 +01:00
3d2aa23374
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 09:58:27 +01:00
5cac482517 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 00:52:20 +01:00
d79a337290
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:06:34 +01:00
Valentina Mukhamedzhanova
d8e276dbe8 Really skip all gpg-agent files. 2017-08-17 16:17:33 +02:00
Valentina Mukhamedzhanova
fa99a8f614 Port to python2-gpg. 2017-08-17 14:29:15 +02:00
Fedora Release Engineering
cc5c2f2f8e - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 22:37:39 +00:00
Fedora Release Engineering
c3cb7b2414 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 18:19:10 +00:00
Valentina Mukhamedzhanova
a646ca6ee9 Stop requiring python-sqlite. 2016-09-13 16:14:24 +02:00
Fedora Release Engineering
a83a29cd2e - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:14:09 +00:00
Fedora Release Engineering
c1ee0dcf4e - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 04:00:38 +00:00
18 changed files with 1 additions and 213280 deletions

7
.gitignore vendored
View file

@ -1,7 +0,0 @@
yum-3.2.27.tar.gz
yum-3.2.28.tar.gz
/yum-3.2.29.tar.gz
/yum-3.4.0.tar.gz
/yum-3.4.1.tar.gz
/yum-3.4.2.tar.gz
/yum-3.4.3.tar.gz

View file

@ -1,6 +0,0 @@
#! /bin/sh -ve
fedpkg clog
git commit -a -F clog
git push
fedpkg build

1
dead.package Normal file
View file

@ -0,0 +1 @@
Superseded by DNF. For details, see: https://fedoraproject.org/wiki/Changes/Retire_YUM_3

View file

@ -1,7 +0,0 @@
#! /bin/sh -e
# yum-3.4.3-44.fc19
ver=$(/usr/bin/fedpkg verrel | perl -lpe 's/-[^-]+$//')
fedpkg prep > /dev/null
diff -u yum.spec $ver/yum.spec

View file

@ -1,16 +0,0 @@
diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py
index b493b6a..27c6d53 100644
--- a/rpmUtils/arch.py
+++ b/rpmUtils/arch.py
@@ -15,7 +15,7 @@ arches = {
# ia32
"athlon": "i686",
"i686": "i586",
- "geode": "i586",
+ "geode": "i686",
"i586": "i486",
"i486": "i386",
"i386": "noarch",
--
1.6.2.5

View file

@ -1,33 +0,0 @@
#! /bin/bash -e
done=false
if [ "x$1" = "xjames" ]; then
done=true
cvs=~/work/fedora/cvs/yum
git=~/work/rpm/private/yum
fi
if [ "x$1" = "xseth" ]; then
done=true
cvs=~/proj/fedora/yum/master
git=~/proj/yum/3.2.X
fi
if [ "x$1" = "xvalentina" ]; then
done=true
cvs=~/devel/fedora/yum
git=~/devel/upstream/yum
fi
if ! $done; then
echo " Usage: $0 james | seth | valentina" 1>&2
echo "" 1>&2
echo " This command copies the latest git HEAD into Fedora rawhide," 1>&2
echo " working out the versions automatically. It also makes the" 1>&2
echo " diff between HEADs as minimal as possible. " 1>&2
exit 1
fi
cd $cvs
ver=$(/usr/bin/fedpkg verrel | perl -lpe 's/-[^-]+$//' | sed s/\\\./-/g)
cd $git
git diff -r $ver..HEAD > $cvs/yum-HEAD.patch

View file

@ -1,13 +0,0 @@
--- yum/config.py~ 2009-07-22 12:47:52.000000000 -0400
+++ yum/config.py 2009-07-22 12:48:39.000000000 -0400
@@ -631,9 +631,7 @@
names_of_0=["0", "<off>"])
kernelpkgnames = ListOption(['kernel','kernel-smp', 'kernel-enterprise',
'kernel-bigmem', 'kernel-BOOT', 'kernel-PAE', 'kernel-PAE-debug'])
- exactarchlist = ListOption(['kernel', 'kernel-smp',
- 'kernel-hugemem', 'kernel-enterprise', 'kernel-bigmem',
- 'kernel-devel', 'kernel-PAE', 'kernel-PAE-debug'])
+ exactarchlist = ListOption([])
tsflags = ListOption()
assumeyes = BoolOption(False)

View file

@ -1,21 +0,0 @@
diff --git a/rpmUtils/transaction.py b/rpmUtils/transaction.py
index c5167d3..61d7ec0 100644
--- a/rpmUtils/transaction.py
+++ b/rpmUtils/transaction.py
@@ -13,7 +13,6 @@
import rpm
import miscutils
-from yum.i18n import to_str
read_ts = None
ts = None
@@ -56,7 +55,7 @@ class TransactionWrapper:
# Newer rpm (4.8.0+) has problem objects, older have just strings.
# Should probably move to using the new objects, when we can. For
# now just be compatible.
- results.append(to_str(prob))
+ results.append(str(prob))
return results

View file

@ -1 +0,0 @@
7c8ea8beba5b4e7fe0c215e4ebaa26ed yum-3.4.3.tar.gz

File diff suppressed because it is too large Load diff

View file

@ -1,11 +0,0 @@
diff -up yum-3.4.3/completion-helper.py.old yum-3.4.3/completion-helper.py
--- yum-3.4.3/completion-helper.py.old 2012-08-22 17:00:47.444104234 +0200
+++ yum-3.4.3/completion-helper.py 2012-08-22 17:00:57.954647525 +0200
@@ -70,6 +70,7 @@ def get_pattern(extcmds):
def main(args):
base = cli.YumBaseCli()
+ base.setCacheDir = lambda *x: True # use the system cachedir
base.yum_cli_commands.clear()
base.registerCommand(GroupsCompletionCommand())
base.registerCommand(ListCompletionCommand())

View file

@ -1,42 +0,0 @@
diff --git a/Makefile b/Makefile
index 9389aa8..a6b3974 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ install:
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '/usr/share/yum-cli', 1)"
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin
- install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum
+ install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum-deprecated
install -m 755 bin/yum-updatesd.py $(DESTDIR)/usr/sbin/yum-updatesd
mkdir -p $(DESTDIR)/var/cache/yum
diff --git a/bin/yum.py b/bin/yum.py
index 7ccee31..01627f4 100755
--- a/bin/yum.py
+++ b/bin/yum.py
@@ -1,5 +1,11 @@
#!/usr/bin/python
import sys
+
+sys.stderr.write("""\
+Yum command has been deprecated, use dnf instead.
+See 'man dnf' and 'man yum2dnf' for more information.\n
+""")
+
try:
import yum
except ImportError:
diff --git a/docs/Makefile b/docs/Makefile
index 8cc7f9f..318ce1b 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -8,7 +8,7 @@ clean:
install:
mkdir -p $(DESTDIR)/usr/share/man/man5
mkdir -p $(DESTDIR)/usr/share/man/man8
- install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8
+ install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum-deprecated.8
install -m 644 yum-shell.8 $(DESTDIR)/usr/share/man/man8/yum-shell.8
install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5
install -m 644 yum-updatesd.8 $(DESTDIR)/usr/share/man/man8/yum-updatesd.8

View file

@ -1,43 +0,0 @@
diff -ru yum-3.4.3-orig/yum/config.py yum-3.4.3/yum/config.py
--- yum-3.4.3-orig/yum/config.py 2011-12-02 15:45:41.617448597 -0500
+++ yum-3.4.3/yum/config.py 2011-12-02 15:46:20.576285275 -0500
@@ -49,14 +49,11 @@
# Alter/patch these to change the default checking...
__pkgs_gpgcheck_default__ = False
__repo_gpgcheck_default__ = False
-__main_multilib_policy_default__ = 'all'
-__main_failovermethod_default__ = 'roundrobin'
-__main_installonly_limit_default__ = 0
-__group_command_default__ = 'compat'
-__exactarchlist_default__ = ['kernel', 'kernel-smp',
- 'kernel-hugemem', 'kernel-enterprise',
- 'kernel-bigmem',
- 'kernel-devel', 'kernel-PAE', 'kernel-PAE-debug']
+__main_multilib_policy_default__ = 'best'
+__main_failovermethod_default__ = 'priority'
+__main_installonly_limit_default__ = 3
+__group_command_default__ = 'objects'
+__exactarchlist_default__ = []
class Option(object):
"""
--- a/docs/yum.conf.5.orig 2010-06-21 17:39:17.000000000 -0400
+++ b/docs/yum.conf.5 2010-09-14 12:11:40.897615896 -0400
@@ -141,7 +141,7 @@
.IP
\fBinstallonly_limit \fR
Number of packages listed in installonlypkgs to keep installed at the same
-time. Setting to 0 disables this feature. Default is '0'. Note that this
+time. Setting to 0 disables this feature. Default is '3'. Note that this
functionality used to be in the "installonlyn" plugin, where this option was
altered via tokeep.
Note that as of version 3.2.24, yum will now look in the yumdb for a installonly
@@ -267,7 +267,7 @@ group, and won't remove those on "group remove".
Running "yum upgrade" will also run "yum group upgrade" (thus. adding new
packages for all groups).
-Default is: compat
+Default is: objects
.IP
\fBupgrade_group_objects_upgrade\fR

View file

@ -1,83 +0,0 @@
commit 102915d4d402493c48d434ae1d1756225c4468e0
Author: James Antill <james@and.org>
Date: Mon Jun 14 01:15:21 2010 -0400
Port manpage files path fixups.
diff --git a/docs/yum.8 b/docs/yum.8
index d5ede0a..3bdb408 100644
--- a/docs/yum.8
+++ b/docs/yum.8
@@ -568,7 +568,7 @@ option in yum.conf. For a plugin to work, the following conditions must be met:
1. The plugin module file must be installed in the plugin path as just
described.
.LP
-2. The global \fBplugins\fP option in /etc/yum/yum.conf must be set to `1'.
+2. The global \fBplugins\fP option in /etc/yum.conf must be set to `1'.
.LP
3. A configuration file for the plugin must exist in
/etc/yum/pluginconf.d/<plugin_name>.conf and the \fBenabled\fR setting in this
@@ -584,9 +584,9 @@ configuration options.
.PP
.SH "FILES"
.nf
-/etc/yum/yum.conf
+/etc/yum.conf
/etc/yum/version-groups.conf
-/etc/yum/repos.d/
+/etc/yum.repos.d/
/etc/yum/pluginconf.d/
/var/cache/yum/
.fi
diff --git a/docs/yum.conf.5 b/docs/yum.conf.5
index ca36103..42815b9 100644
--- a/docs/yum.conf.5
+++ b/docs/yum.conf.5
@@ -4,10 +4,10 @@
\fByum.conf\fR \- Configuration file for \fByum(8)\fR.
.SH "DESCRIPTION"
.LP
-Yum uses a configuration file at \fB/etc/yum/yum.conf\fR.
+Yum uses a configuration file at \fB/etc/yum.conf\fR.
.LP
Additional configuration files are also read from the directories set by the
-\fBreposdir\fR option (default is `/etc/yum/repos.d').
+\fBreposdir\fR option (default is `/etc/yum.repos.d').
See the \fBreposdir\fR option below for further details.
.SH "PARAMETERS"
@@ -42,10 +42,10 @@ of headers and packages after successful installation. Default is '1'
.IP
\fBreposdir\fR
A list of directories where yum should look for .repo files which define
-repositories to use. Default is `/etc/yum/repos.d'. Each
+repositories to use. Default is `/etc/yum.repos.d'. Each
file in this directory should contain one or more repository sections as
documented in \fB[repository] options\fR below. These will be merged with the
-repositories defined in /etc/yum/yum.conf to form the complete set of
+repositories defined in /etc/yum.conf to form the complete set of
repositories that yum will use.
.IP
@@ -745,8 +745,8 @@ for any given command. Defaults to False.
.SH "URL INCLUDE SYNTAX"
.LP
-The inclusion of external configuration files is supported for /etc/yum/yum.conf
-and the .repo files in the /etc/yum/repos.d directory. To include a URL, use a
+The inclusion of external configuration files is supported for /etc/yum.conf
+and the .repo files in the /etc/yum.repos.d directory. To include a URL, use a
line of the following format:
include=url://to/some/location
@@ -812,8 +812,8 @@ data in any value.
.SH "FILES"
.nf
-/etc/yum/yum.conf
-/etc/yum/repos.d/
+/etc/yum.conf
+/etc/yum.repos.d/
/etc/yum/pluginconf.d/
/etc/yum/protected.d
/etc/yum/vars

View file

@ -1,13 +0,0 @@
diff -ru yum-3.4.3-orig/rpmUtils/arch.py yum-3.4.3/rpmUtils/arch.py
--- yum-3.4.3-orig/rpmUtils/arch.py 2011-06-28 17:01:10.009680846 -0400
+++ yum-3.4.3/rpmUtils/arch.py 2011-06-28 17:01:31.849916539 -0400
@@ -3,7 +3,7 @@
import ctypes
import struct
-_ppc64_native_is_best = False
+_ppc64_native_is_best = True
# dict mapping arch -> ( multicompat, best personality, biarch personality )
multilibArches = { "x86_64": ( "athlon", "x86_64", "athlon" ),
Only in yum-3.4.3/rpmUtils: arch.py~

View file

@ -1,15 +0,0 @@
[main]
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no

View file

@ -1,23 +0,0 @@
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

1681
yum.spec

File diff suppressed because it is too large Load diff