aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlyas Gasanov <torso.nafi@gmail.com>2019-04-14 00:00:58 +0300
committerRob Austein <sra@hactrn.net>2019-04-15 16:47:00 +0000
commit3d443e9cb4a55f6653e6795b4af53c957c2e8bfa (patch)
tree2fdba10ce316c97ac8b1326bc09a8f8268828d56
parentf7883485cc8ec4c61f07c1f26068d3beade187d2 (diff)
Don't check build dependencies in the host system.
By default dpkg-buildpackage checks build dependencies and conflicts before building the package, no matter whether source or binary. When no .dsc file is supplied to the build command, baiji uses dpkg-buildpackage to build a source package from the current directory first. This is liable to fail if the host system doesn't satisfy the build dependencies. Since the actual building job is done inside a Docker environment, we don't need this behavior.
-rwxr-xr-xbaiji2
1 files changed, 1 insertions, 1 deletions
diff --git a/baiji b/baiji
index 29fc77c..1bed0f1 100755
--- a/baiji
+++ b/baiji
@@ -161,7 +161,7 @@ def build(args):
if args.dsc is None:
try:
- subprocess.check_call(("dpkg-buildpackage", "-S", "-us", "-uc", "-rfakeroot"))
+ subprocess.check_call(("dpkg-buildpackage", "-S", "-d", "-us", "-uc", "-rfakeroot"))
except Exception as e:
sys.exit("Couldn't build source package: {!s}".format(e))
try: