From 9f0acd1e691518cb031707bc4affdd262a5e5335 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 9 Jan 2013 14:44:36 +0200 Subject: rpm.SpecFile: return correct patch file path in patchseries() Fixes importing patches when the 'Patch:' tag contains an URI. Signed-off-by: Markus Lehtonen --- gbp/rpm/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gbp') diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py index 05b40e3c..88ccea32 100644 --- a/gbp/rpm/__init__.py +++ b/gbp/rpm/__init__.py @@ -518,7 +518,9 @@ class SpecFile(object): patchdir = os.path.dirname(self.specfile) for n, p in sorted(self.patches.iteritems()): if p['autoupdate'] and p['apply']: - series.append(Patch(os.path.join(patchdir, p['filename']), strip = int(p['strip']))) + fname = os.path.basename(p['filename']) + series.append(Patch(os.path.join(patchdir, fname), + strip = int(p['strip']))) return series -- cgit v1.2.3