[Pkg-libvirt-commits] [libguestfs] 24/179: p2v: Fix virt-p2v-make-kickstart so it won't fail when using a custom repo.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 31 19:07:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit fd421ebf88653455d8547f546e887cf5c5bfb890
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Oct 7 15:29:39 2014 +0100

    p2v: Fix virt-p2v-make-kickstart so it won't fail when using a custom repo.
    
    Because of `set -e', using the `((i++))' expression causes bash to
    fail, unless we tell it to ignore the error code on that line.
---
 p2v/virt-p2v-make-kickstart.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/p2v/virt-p2v-make-kickstart.in b/p2v/virt-p2v-make-kickstart.in
index 967f339..a2937b3 100644
--- a/p2v/virt-p2v-make-kickstart.in
+++ b/p2v/virt-p2v-make-kickstart.in
@@ -124,7 +124,7 @@ repo --name=koji --baseurl=http://koji.fedoraproject.org/repos/rawhide/latest/\$
             ;;
         *)
             # A custom repo is just a URL.
-            ((i++))
+            ((i++)) ||:
             repos="$repos
 repo --name=custom$i --baseurl=$repo $proxy
 "

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list