From: Markus Lehtonen Date: Fri, 23 Aug 2013 11:04:12 +0000 (+0300) Subject: UpstreamSource: check that the sources exist X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1efb9aee8c044f0c66975f0dd59b852134874b35;p=tools%2Fgit-buildpackage.git UpstreamSource: check that the sources exist Signed-off-by: Markus Lehtonen --- diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index ff0ac6d3..df7da994 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -317,6 +317,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, \