[python-fedora] fix-updates-testing-tag.patch: Fix 'bodhi -T'

Adam Jackson ajax at fedoraproject.org
Fri Feb 1 17:42:07 UTC 2013


commit 92fc2773297083911a7b68ef3df8bd82f7f1e4f5
Author: Adam Jackson <ajax at redhat.com>
Date:   Fri Feb 1 12:42:04 2013 -0500

    fix-updates-testing-tag.patch: Fix 'bodhi -T'

 fix-updates-testing-tag.patch |   12 ++++++++++++
 python-fedora.spec            |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/fix-updates-testing-tag.patch b/fix-updates-testing-tag.patch
new file mode 100644
index 0000000..b9dabc1
--- /dev/null
+++ b/fix-updates-testing-tag.patch
@@ -0,0 +1,12 @@
+diff -up python-fedora-0.3.32.1/fedora/client/bodhi.py.jx python-fedora-0.3.32.1/fedora/client/bodhi.py
+--- python-fedora-0.3.32.1/fedora/client/bodhi.py.jx	2013-01-20 07:40:33.000000000 -0500
++++ python-fedora-0.3.32.1/fedora/client/bodhi.py	2013-02-01 12:30:20.951334820 -0500
+@@ -211,7 +211,7 @@ class BodhiClient(BaseClient):
+         yum = YumBase()
+         yum.doConfigSetup(init_plugins=False)
+         fedora = file('/etc/fedora-release').readlines()[0].split()[2]
+-        tag = 'dist-f%s-updates-testing' % fedora
++        tag = 'f%s-updates-testing' % fedora
+         builds = self.get_koji_session(login=False).listTagged(tag, latest=True)
+         for build in builds:
+             pkgs = yum.rpmdb.searchNevra(name=build['name'],
diff --git a/python-fedora.spec b/python-fedora.spec
index 3b66dbe..3b8993d 100644
--- a/python-fedora.spec
+++ b/python-fedora.spec
@@ -4,7 +4,7 @@
 
 Name:           python-fedora
 Version:        0.3.32.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Python modules for talking to Fedora Infrastructure Services
 
 Group:          Development/Languages
@@ -12,6 +12,7 @@ License:        LGPLv2+
 URL:            https://fedorahosted.org/python-fedora/
 Source0:        https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}%{?prerel}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0:         fix-updates-testing-tag.patch
 
 BuildArch:      noarch
 BuildRequires:  python2-devel
@@ -113,6 +114,7 @@ Account System.
 
 %prep
 %setup -q -n %{name}-%{version}%{?prerel}
+%patch0 -p1
 
 %build
 paver build
@@ -162,6 +164,9 @@ rm -rf %{buildroot}
 %{python_sitelib}/flask_fas.py*
 
 %changelog
+* Fri Feb 01 2013 Adam Jackson <ajax at redhat.com> 0.3.32.1-2
+- fix-updates-testing-tag.patch: Fix 'bodhi -T'
+
 * Thu Jan 24 2013 Toshio Kuratomi <toshio at fedoraproject.org> - 0.3.32.1-1
 - Fix a documentation bug that slipped through
 


More information about the scm-commits mailing list