UpstreamSource: store the absolute path
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 23 Aug 2013 11:01:39 +0000 (14:01 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Mar 2015 08:07:45 +0000 (10:07 +0200)
This is more robust and reliable, e.g. in case cwd is changed.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/pkg/__init__.py

index cf3518fd239fb2b42bfab4a8465ece3a4ef04197..ff0ac6d3335b90f22ffb5c4ca964b636fbc0e586 100644 (file)
@@ -316,7 +316,7 @@ class UpstreamSource(object):
         self._orig = False
         self._tarball = False
         self._pkg_policy = pkg_policy
-        self._path = name
+        self._path = os.path.abspath(name)
         self.unpacked = unpacked
         self._filename_base, \
         self._archive_fmt, \