diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-11-07 15:11:52 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-11-07 15:22:46 +0100 |
commit | 3bf8288c2563bfe83427c18bb10317f1dc42515e (patch) | |
tree | a8fc01b6a0bf157c077138e0609dc6f72c7873d1 /examples | |
parent | 526fc0cefff0403ada331042437560119ae91fd6 (diff) | |
download | git-buildpackage-3bf8288c2563bfe83427c18bb10317f1dc42515e.tar.gz git-buildpackage-3bf8288c2563bfe83427c18bb10317f1dc42515e.tar.bz2 git-buildpackage-3bf8288c2563bfe83427c18bb10317f1dc42515e.zip |
Don't fail when series file is missing.
Create an empty patch-queue branch instead.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-pq | 11 |
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 } |