aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-11-07 15:11:52 +0100
committerGuido Günther <agx@sigxcpu.org>2009-11-07 15:22:46 +0100
commit3bf8288c2563bfe83427c18bb10317f1dc42515e (patch)
treea8fc01b6a0bf157c077138e0609dc6f72c7873d1
parent526fc0cefff0403ada331042437560119ae91fd6 (diff)
Don't fail when series file is missing.
Create an empty patch-queue branch instead.
-rwxr-xr-xexamples/gbp-pq11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/gbp-pq b/examples/gbp-pq
index 035412ab..96b1fe6c 100755
--- a/examples/gbp-pq
+++ b/examples/gbp-pq
@@ -71,15 +71,16 @@ pq_import()
return 1
fi
- if [ ! -r ${patches}series ]; then
- echo "Found no series file at \"$patches\"."
- return 1
- fi
-
if ! git checkout -b $pq; then
echo "Cannot create patch-queue branch \"$pq\"."
return 1
fi
+
+ if [ ! -r ${patches}series ]; then
+ echo "Found no series file at \"$patches\". Patch-queue branch will be empty."
+ return 0
+ fi
+
QUILT_PATCHES=$patches git quiltimport
}