aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-10-23 21:18:18 +0200
committerGuido Günther <agx@sigxcpu.org>2017-10-23 21:25:48 +0200
commit6fbdb2005c874daff14c4eff6181eddca473e0c8 (patch)
treec544f184212dc3d82b09db80dfcd13ecef6dbca1 /debian
parent01da1e61b003aa7cb576fbe5755a665a12c3f2ba (diff)
pk4: Simplify
Let gbp import-dsc create the repo.
Diffstat (limited to 'debian')
-rw-r--r--debian/pk417
1 files changed, 5 insertions, 12 deletions
diff --git a/debian/pk4 b/debian/pk4
index edf44651..7f795be8 100644
--- a/debian/pk4
+++ b/debian/pk4
@@ -1,19 +1,12 @@
#!/bin/sh
set -e
-if [ ! -d "$2" ]; then
- git init "$2"
-
- # Add local gbp.conf to override any branch settings in 'debian/gbp.conf'
- # (since this checkout wasn't created by "gbp clone"). We want to be sure the
- # branches exist so we can build the package right away.
- cat <<EOF > "$2"/.git/gbp.conf
+gbp import-dsc --debian-branch=pk4 --upstream-branch=upstream "$1" "$2"
+# Add local gbp.conf to override any branch settings in 'debian/gbp.conf'
+# (since this checkout wasn't created by "gbp clone"). We want to be sure the
+# branches exist so we can build the package right away.
+cat <<EOF > "$2"/.git/gbp.conf
[DEFAULT]
upstream-branch = upstream
debian-branch = pk4
EOF
-fi
-
-cd "$2"
-gbp import-dsc "$1"
-