import time
import gbp.command_wrappers as gbpc
from gbp.pkg import UpstreamSource
-from gbp.deb import (debian_version_chars,
- parse_dsc, DscFile)
+from gbp.deb import parse_dsc
from gbp.deb.git import (DebianGitRepository, GitRepositoryError)
from gbp.deb.changelog import ChangeLog
from gbp.git import rfc822_date_to_git
from gbp.git.modifier import GitModifier
-from gbp.config import GbpOptionParserDebian, GbpOptionGroup, no_upstream_branch_msg
+from gbp.config import (GbpOptionParserDebian, GbpOptionGroup,
+ no_upstream_branch_msg)
from gbp.errors import GbpError
import gbp.log
import sys
import tempfile
import gbp.command_wrappers as gbpc
-from gbp.deb import parse_dsc, DscFile, DpkgCompareVersions
+from gbp.deb import parse_dsc, DpkgCompareVersions
from gbp.errors import GbpError
from gbp.git import GitRepository, GitRepositoryError
from gbp.scripts import import_dsc
"Fetch snapshots using debsnap von snapshots.debian.org"
dscs = None
- gbp.log.info("Downloading snapshots of '%s' to '%s'..." % (pkg, downloaddir))
- debsnap = gbpc.Command("debsnap", [ '--force', '--destdir=%s' % (downloaddir), pkg])
+ gbp.log.info("Downloading snapshots of '%s' to '%s'..." %
+ (pkg, downloaddir))
+ debsnap = gbpc.Command("debsnap", [ '--force', '--destdir=%s' %
+ (downloaddir), pkg])
try:
debsnap()
except gbpc.CommandExecFailed:
import_args = argv[1:]
if '--verbose' in import_args:
- verbose = True
+ verbose = True
gbp.log.setup(False, verbose)
if '--ignore-repo-config' in import_args:
repo = GitRepository('.')
(clean, out) = repo.is_clean()
if not clean:
- gbp.log.err("Repository has uncommitted changes, commit these first: ")
+ gbp.log.err("Repository has uncommitted changes, "
+ "commit these first: ")
raise GbpError(out)
else:
dirs['pkg'] = dirs['top']