Handle module-init-tools → kmod transition in wheezy/raring gracefully
This commit is contained in:
1
debian/changelog
vendored
1
debian/changelog
vendored
@@ -22,6 +22,7 @@ xen-tools (4.4~dev-1) UNRELEASED; urgency=low
|
||||
- Makefile accepts DESTDIR=…
|
||||
- Move examples from debian/examples to examples.
|
||||
- Uses File::Which, added (build-) dependency on libfile-which-perl
|
||||
- Knows about module-init-tools → kmod transition in wheezy/raring.
|
||||
* Add debian/gbp.conf to be able to to build xen-tools with
|
||||
git-buildpackage.
|
||||
* Clean up debian/rules:
|
||||
|
||||
@@ -74,9 +74,17 @@ else
|
||||
fi
|
||||
|
||||
#
|
||||
# Install the module-init-tools package.
|
||||
# Install either kmod or module-init-tools package.
|
||||
#
|
||||
installDebianPackage ${prefix} module-init-tools
|
||||
if chroot ${prefix} /usr/bin/apt-cache show module-init-tools >/dev/null 2>/dev/null; then
|
||||
if chroot ${prefix} /usr/bin/apt-cache show module-init-tools | fgrep -qi transitional; then
|
||||
installDebianPackage ${prefix} kmod
|
||||
else
|
||||
installDebianPackage ${prefix} module-init-tools
|
||||
fi
|
||||
else
|
||||
installDebianPackage ${prefix} kmod
|
||||
fi
|
||||
|
||||
fi # if pygrub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user