Bastian Blank
2008-Mar-07 13:09 UTC
[Pkg-xen-changes] r538 - in trunk/xen-common: debian scripts
Author: waldi Date: Fri Mar 7 13:09:47 2008 New Revision: 538 Log: * debian/changelog: Update. * scripts/xen-utils-version: Special case unstable versions. Modified: trunk/xen-common/debian/changelog trunk/xen-common/scripts/xen-utils-version Modified: trunk/xen-common/debian/changelog =============================================================================--- trunk/xen-common/debian/changelog (original) +++ trunk/xen-common/debian/changelog Fri Mar 7 13:09:47 2008 @@ -1,7 +1,11 @@ xen-common (3.2.0-2) UNRELEASED; urgency=low + [ Guido Trotter ] * Fix init script LSB headers (closes: #458502) + [ Bastian Blank ] + * Special case unstable versions. + -- Guido Trotter <ultrotter at debian.org> Mon, 03 Mar 2008 20:40:48 +0000 xen-common (3.2.0-1) unstable; urgency=low Modified: trunk/xen-common/scripts/xen-utils-version =============================================================================--- trunk/xen-common/scripts/xen-utils-version (original) +++ trunk/xen-common/scripts/xen-utils-version Fri Mar 7 13:09:47 2008 @@ -14,8 +14,13 @@ if [ -z "$VERSION" ]; then if [ -d "/sys/hypervisor" ]; then if [ "$(cat /sys/hypervisor/type)" = xen ]; then - dir=/sys/hypervisor/version/ - VERSION="$(cat $dir/major).$(cat $dir/minor)$(cat $dir/extra)" + DIR=/sys/hypervisor/version + VERSION_EXTRA=$(cat $DIR/extra) + if [ "$VERSION_EXTRA" = "-unstable" ]; then + VERSION=unstable + else + VERSION="$(cat $DIR/major).$(cat $DIR/minor)$VERSION_EXTRA" + fi else [ "$QUIET" ] || echo "WARING! Can''t read type from sysfs!" >&2 fi