gbp.log.debug("upstream signature state: %s" % upstream_signatures)
commit, found_signature = self.get_pristine_tar_commit(source, component)
if not commit and self.has_pristine_tar_branch():
- raise GitRepositoryError("Can not find pristine tar commit for archive '%s'" % output)
+ raise GitRepositoryError("Cannot find pristine tar commit for archive '%s'" % output)
if not found_signature and upstream_signatures.is_on():
- raise GitRepositoryError("Can not find requested upstream signature for archive '%s' in pristine tar commit." % output)
+ raise GitRepositoryError("Cannot find requested upstream signature for archive '%s' in pristine tar commit." % output)
try:
signature = False if upstream_signatures.is_off() else found_signature
self.pristine_tar.checkout(source.name, source.upstream_version, comp.type, output_dir,
sig = None
tarballs.append(DebianAdditionalTarball(cname, component, sig=sig))
if not os.path.exists(cname):
- raise GbpError("Can not find component tarball %s" % cname)
+ raise GbpError("Cannot find component tarball %s" % cname)
return tarballs
'--component=foo',
'--pristine-tar'])
ok_(ret == 1, "Exporting tarballs must fail")
- self._check_log(-1, "gbp:error: Can not find pristine tar commit for archive 'hello-debhelper_2.8.orig.tar.gz'")
+ self._check_log(-1, "gbp:error: Cannot find pristine tar commit for archive 'hello-debhelper_2.8.orig.tar.gz'")
def test_tarball_dir_version_replacement(self):
"""Test that generating tarball from directory version substitution works"""
'--pristine-tar',
'--upstream-signatures=on'])
ok_(ret == 1, "Exporting tarballs must fail")
- self._check_log(-1, "gbp:error: Can not find requested upstream signature for archive "
+ self._check_log(-1, "gbp:error: Cannot find requested upstream signature for archive "
"'hello-debhelper_2.6.orig.tar.gz' in pristine tar commit.")
@RepoFixtures.quilt30(opts=['--pristine-tar'])