[packagedb-cli] Include patch 0001-Reverse-debugging-changes.patch backported from upstream repo

Pierre-YvesChibon pingou at fedoraproject.org
Thu Mar 7 08:43:14 UTC 2013


commit 3375ee3f9125d3f84be79fcfa9da8eebfcf18454
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Thu Mar 7 09:43:02 2013 +0100

    Include patch 0001-Reverse-debugging-changes.patch backported from upstream repo

 0001-Reverse-debugging-changes.patch |   38 ++++++++++++++++++++++++++++++++++
 packagedb-cli.spec                   |    9 +++++++-
 2 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/0001-Reverse-debugging-changes.patch b/0001-Reverse-debugging-changes.patch
new file mode 100644
index 0000000..c749c3f
--- /dev/null
+++ b/0001-Reverse-debugging-changes.patch
@@ -0,0 +1,38 @@
+From 2af15d9539c5a56ec858057c125dea095564040d Mon Sep 17 00:00:00 2001
+From: Pierre-Yves Chibon <pingou at pingoured.fr>
+Date: Fri, 1 Mar 2013 13:16:38 +0100
+Subject: [PATCH 1/3] Reverse debugging changes
+
+---
+ pkgdb-cli | 11 +++++------
+ 1 file changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/pkgdb-cli b/pkgdb-cli
+index b0ca6b6..5da6b6b 100755
+--- a/pkgdb-cli
++++ b/pkgdb-cli
+@@ -1149,9 +1149,8 @@ def do_update(args):
+     answer = "Denied"
+     if args.approve:
+         answer = "Approved"
+-    print args
+-    #answer_acl_request(args.package, args.action, args.user,
+-            #answer, args.branch, args.username, args.password)
++    answer_acl_request(args.package, args.action, args.user,
++            answer, args.branch, args.username, args.password)
+ 
+ 
+ def do_branch(args):
+@@ -1188,6 +1187,6 @@ if __name__ == '__main__':
+     except AppError, e:
+         print '{0}: {1}'.format(e.name, e.message)
+         sys.exit(4)
+-    #except Exception, e:
+-        #print 'Error: {0}'.format(e)
+-        #sys.exit(5)
++    except Exception, e:
++        print 'Error: {0}'.format(e)
++        sys.exit(5)
+-- 
+1.8.1.4
+
diff --git a/packagedb-cli.spec b/packagedb-cli.spec
index 8d26578..4a5ff51 100644
--- a/packagedb-cli.spec
+++ b/packagedb-cli.spec
@@ -1,6 +1,6 @@
 Name:           packagedb-cli
 Version:        1.4.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A CLI for pkgdb
 
 License:        GPLv2+
@@ -11,6 +11,8 @@ URL:            https://fedorahosted.org/packagedb-cli/
 Source0:        http://ambre.pingoured.fr/public/packagedb-cli-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Patch1:         0001-Reverse-debugging-changes.patch
+
 BuildArch:      noarch
 
 %if 0%{?rhel} && 0%{?rhel} < 6 
@@ -44,6 +46,8 @@ It also allows you to orphan and/or retire your package(s).
 %prep
 %setup -q
 
+%patch1 -p1
+
 %build
 
 %install
@@ -57,6 +61,9 @@ install pkgdb-cli $RPM_BUILD_ROOT/%{_bindir}/
 %{_bindir}/pkgdb-cli
 
 %changelog
+* Thu Mar 07 2013 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.4.1-2
+- Backport 0001-Reverse-debuggingchanges.patch from upstream repo (fixes bz#918909)
+
 * Thu Feb 28 2013 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.4.1-1
 - Update to 1.4.1
 - Fixes bug #916581


More information about the scm-commits mailing list