Package: qemu-utils Version: 1.0.1+dfsg-1 Severity: normal Tags: patch qemu-make-debian-root doesn't even understand "-ks"! But "usage" message says that it understands :)
--- /usr/sbin/qemu-make-debian-root 2012-05-06 13:54:25.864831777 +0400 +++ /tmp/fixed 2012-05-06 14:00:06.910751879 +0400 @@ -18,19 +18,26 @@ } KEEPFS=0 -if [ "$1" = "-k" ] || [ "$2" = "-k" ]; then - KEEPFS=1 -fi - SPARSE=0 -if [ "$1" = "-s" ] || [ "$2" = "-s" ]; then - SPARSE=1 -fi -# Remove any options, tacitly assuming them at the beginning. -# -[ $KEEPFS -eq 1 ] && shift -[ $SPARSE -eq 1 ] && shift +while :; do + case "$1" in + -k) + KEEPFS=1 + ;; + -s) + SPARSE=1 + ;; + -ks|-sk) + KEEPFS=1 + SPARSE=1 + ;; + *) + break + ;; + esac + shift +done if [ $# -lt 4 ]; then echo Usage: "$0 [-ks] size-in-MB distrib deburl image [files_to_copy_in_/root]" >&2 -- System Information: Debian Release: 6.0.4 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-12-generic (SMP w/8 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages qemu-utils depends on: .. qemu-utils recommends no packages. Versions of packages qemu-utils suggests: .. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org