[yum-commits] plugins/downloadonly po/POTFILES.in yum-utils.spec

zpavlas at osuosl.org zpavlas at osuosl.org
Thu Nov 15 11:48:16 UTC 2012


 plugins/downloadonly/downloadonly.conf |    2 -
 plugins/downloadonly/downloadonly.py   |   48 ---------------------------------
 po/POTFILES.in                         |    1 
 yum-utils.spec                         |   19 -------------
 4 files changed, 70 deletions(-)

New commits:
commit cd0ce5c3ad003697d55fcc37b4f2021fd5c0c3dc
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Thu Nov 15 12:44:59 2012 +0100

    remove downloadonly plugin.  BZ 876961

diff --git a/plugins/downloadonly/downloadonly.conf b/plugins/downloadonly/downloadonly.conf
deleted file mode 100644
index 8e4d76c..0000000
--- a/plugins/downloadonly/downloadonly.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-[main]
-enabled=1
diff --git a/plugins/downloadonly/downloadonly.py b/plugins/downloadonly/downloadonly.py
deleted file mode 100644
index 8486bb0..0000000
--- a/plugins/downloadonly/downloadonly.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/python
-
-# This program 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 program 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 Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# by Menno Smits
-
-from yum.plugins import PluginYumExit, TYPE_INTERACTIVE
-
-requires_api_version = '2.1'
-plugin_type = (TYPE_INTERACTIVE,)
-
-def config_hook(conduit):
-    parser = conduit.getOptParser()
-    if hasattr(parser, 'plugin_option_group'):
-        parser = parser.plugin_option_group
-
-    parser.add_option('', '--downloadonly', dest='dlonly', action='store_true',
-           default=False, help="don't update, just download")
-    parser.add_option('', '--downloaddir', dest='dldir',
-                      action='store', default=None,
-                      help="specifies an alternate directory to store packages")
-
-def postreposetup_hook(conduit):
-    opts, commands = conduit.getCmdLine()
-    if opts.dldir:
-        repos = conduit.getRepos()
-        rlist = repos.listEnabled()
-        for repo in rlist:
-            repo.setAttribute('pkgdir',opts.dldir)
-           
-
-def postdownload_hook(conduit):
-    opts, commands = conduit.getCmdLine()
-    # Don't die on errors, or we'll never see them.
-    if not conduit.getErrors() and opts.dlonly:
-        raise PluginYumExit('exiting because --downloadonly specified ')
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 581da0a..d85030c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -28,7 +28,6 @@ plugins/ps/ps.py
 plugins/auto-update-debuginfo/auto-update-debuginfo.py
 plugins/show-leaves/show-leaves.py
 plugins/list-data/list-data.py
-plugins/downloadonly/downloadonly.py
 plugins/allowdowngrade/allowdowngrade.py
 plugins/tsflags/tsflags.py
 plugins/merge-conf/merge-conf.py
diff --git a/yum-utils.spec b/yum-utils.spec
index f67f713..cdefb85 100644
--- a/yum-utils.spec
+++ b/yum-utils.spec
@@ -111,18 +111,6 @@ Requires: yum >= 3.0
 This plugin allows you to specify optional transaction flags on the yum
 command line
 
-%package -n yum-plugin-downloadonly
-Summary: Yum plugin to add downloadonly command option
-Group: System Environment/Base
-Provides: yum-downloadonly = %{version}-%{release}
-Obsoletes: yum-downloadonly < 1.1.20-0
-Conflicts: yum-downloadonly < 1.1.20-0
-Requires: yum >= 3.0
-
-%description -n yum-plugin-downloadonly
-This plugin adds a --downloadonly flag to yum so that yum will only download
-the packages and not install/update them.
-
 %package -n yum-plugin-priorities
 Summary: plugin to give priorities to packages from different repos
 Group: System Environment/Base
@@ -403,7 +391,6 @@ plugins="\
  protectbase \
  versionlock \
  tsflags \
- downloadonly \
  priorities \
  merge-conf \
  security \
@@ -547,12 +534,6 @@ fi
 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/tsflags.conf
 /usr/lib/yum-plugins/tsflags.*
 
-%files -n yum-plugin-downloadonly
-%defattr(-, root, root)
-%doc COPYING
-%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/downloadonly.conf
-/usr/lib/yum-plugins/downloadonly.*
-
 %files -n yum-plugin-priorities
 %defattr(-, root, root)
 %doc COPYING


More information about the Yum-commits mailing list