diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-08-23 14:04:12 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-05 14:20:04 +0300 |
commit | e969596f97043d7cca08b00bac1b877db03c9241 (patch) | |
tree | 7f84c936f7a9998c1ce91ae4f3cf85ccd0fb2fed /gbp/pkg | |
parent | 45b0ea49dee0732fe07435b5d2394b0c305d7e19 (diff) | |
download | git-buildpackage-e969596f97043d7cca08b00bac1b877db03c9241.tar.gz git-buildpackage-e969596f97043d7cca08b00bac1b877db03c9241.tar.bz2 git-buildpackage-e969596f97043d7cca08b00bac1b877db03c9241.zip |
UpstreamSource: check that the sources exist
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/pkg')
-rw-r--r-- | gbp/pkg/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index f14a0b05..dd8735af 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -253,6 +253,8 @@ class UpstreamSource(object): self._tarball = False self._pkg_policy = pkg_policy self._path = os.path.abspath(name) + if not os.path.exists(self._path): + raise GbpError('UpstreamSource: unable to find %s' % self._path) self.unpacked = unpacked self._filename_base, \ self._archive_fmt, \ |