diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-01-09 14:44:36 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-03-08 14:04:00 +0200 |
commit | f828a8c35be1d4666dd216c99e8cfc571f5138d3 (patch) | |
tree | c402e259617f48b1d0b619276c726e3cefc0640f /gbp | |
parent | cd9b53a87fc9b710e9b7f04522d35d894ac45a7c (diff) | |
download | git-buildpackage-f828a8c35be1d4666dd216c99e8cfc571f5138d3.tar.gz git-buildpackage-f828a8c35be1d4666dd216c99e8cfc571f5138d3.tar.bz2 git-buildpackage-f828a8c35be1d4666dd216c99e8cfc571f5138d3.zip |
rpm.SpecFile: return correct patch file path in patchseries()
Fixes importing patches when the 'Patch:' tag contains an URI.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/rpm/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py index e4da707a..970382ce 100644 --- a/gbp/rpm/__init__.py +++ b/gbp/rpm/__init__.py @@ -517,7 +517,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 |