diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-07-29 15:26:28 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-07-29 15:26:28 +0200 |
commit | bedaceea47352aa7e9b43bf450338a54b54c99b8 (patch) | |
tree | 7067bb4843cf06f7bf9117db633b24ca667da032 /git-buildpackage | |
parent | b86ddcc55d2df1f2fb212924dc26d81e20e2db40 (diff) |
check for correct overlay usage
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-x | git-buildpackage | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-buildpackage b/git-buildpackage index effdfbfb..85ad1961 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -218,6 +218,9 @@ def main(argv): if options.verbose: Command.verbose = True + if options.overlay and not options.export_dir: + parser.error("Overlay must be used with --git-export-dir") + try: repo = GitRepository(os.path.curdir) except GitRepositoryError: @@ -292,6 +295,8 @@ def main(argv): # Extract orig tarball if git-overlay option is selected: if options.overlay: + if du.is_native(cp): + raise GbpError, "Cannot overlay Debian native package" extract_orig(os.path.join(output_dir, du.orig_file(cp)) , tmp_dir) print "Exporting '%s' to '%s'" % (options.export, tmp_dir) |