Accepting request 79034 from home:namtrac:bugfix
- Add osc-pubkey-parsing.patch, fix PGP pubkey parsing: base64 checksum shouldn't be in the key data, upstream commit f707e9a22e185098bbea923b7ff8971f19a87991 OBS-URL: https://build.opensuse.org/request/show/79034 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=96
This commit is contained in:
parent
378194643d
commit
594d66d2d3
40
osc-pubkey-parsing.patch
Normal file
40
osc-pubkey-parsing.patch
Normal file
@ -0,0 +1,40 @@
|
||||
commit f707e9a22e185098bbea923b7ff8971f19a87991
|
||||
Author: Ludwig Nussel <ludwig.nussel@suse.de>
|
||||
Date: Fri Aug 5 13:52:42 2011 +0200
|
||||
|
||||
fix pgp pubkey parsing
|
||||
|
||||
the base64 checksum must not be included in the key data. Newer rpm
|
||||
don't like that.
|
||||
|
||||
diff --git a/osc/checker.py b/osc/checker.py
|
||||
index b4149d2..88eb7cc 100644
|
||||
--- a/osc/checker.py
|
||||
+++ b/osc/checker.py
|
||||
@@ -61,16 +61,24 @@ class Checker:
|
||||
|
||||
key = ''
|
||||
line = fd.readline()
|
||||
+ crc = None
|
||||
while line:
|
||||
if line[0:12] == "-----END PGP":
|
||||
break
|
||||
line = line.rstrip()
|
||||
- key += line
|
||||
- line = fd.readline()
|
||||
+ if (line[0] == '='):
|
||||
+ crc = line[1:]
|
||||
+ line = fd.readline()
|
||||
+ break
|
||||
+ else:
|
||||
+ key += line
|
||||
+ line = fd.readline()
|
||||
fd.close()
|
||||
if not line or line[0:12] != "-----END PGP":
|
||||
raise KeyError(file, "not a pgp public key")
|
||||
|
||||
+ # TODO: compute and compare CRC, see RFC 2440
|
||||
+
|
||||
bkey = base64.b64decode(key)
|
||||
|
||||
r = self.ts.pgpImportPubkey(bkey)
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 16 13:08:11 UTC 2011 - idonmez@novell.com
|
||||
|
||||
- Add osc-pubkey-parsing.patch, fix PGP pubkey parsing: base64
|
||||
checksum shouldn't be in the key data, upstream commit
|
||||
f707e9a22e185098bbea923b7ff8971f19a87991
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 7 04:51:09 UTC 2011 - adrian@suse.de
|
||||
|
||||
|
2
osc.spec
2
osc.spec
@ -25,6 +25,7 @@ Summary: openSUSE Build Service Commander
|
||||
Url: http://www.gitorious.org/opensuse/osc
|
||||
Group: Development/Tools/Other
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Patch1: osc-pubkey-parsing.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?mandriva_version} < 02010
|
||||
BuildRequires: python-urlgrabber
|
||||
@ -88,6 +89,7 @@ introduction.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
Loading…
Reference in New Issue
Block a user