aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-07-29 15:26:28 +0200
committerGuido Günther <agx@sigxcpu.org>2009-07-29 15:26:28 +0200
commitbedaceea47352aa7e9b43bf450338a54b54c99b8 (patch)
tree7067bb4843cf06f7bf9117db633b24ca667da032
parentb86ddcc55d2df1f2fb212924dc26d81e20e2db40 (diff)
check for correct overlay usage
-rwxr-xr-xgit-buildpackage5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-buildpackage b/git-buildpackage
index effdfbf..85ad196 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)