From e969596f97043d7cca08b00bac1b877db03c9241 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 23 Aug 2013 14:04:12 +0300 Subject: UpstreamSource: check that the sources exist Signed-off-by: Markus Lehtonen --- gbp/pkg/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gbp/pkg') 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, \ -- cgit v1.2.3