[Foo2zjs-commits] r220 - trunk/foo2zjs_20090908dfsg/debian
Luca Capello
gismo at alioth.debian.org
Tue Mar 23 10:54:52 UTC 2010
Author: gismo
Date: 2010-03-23 10:54:51 +0000 (Tue, 23 Mar 2010)
New Revision: 220
Modified:
trunk/foo2zjs_20090908dfsg/debian/changelog
trunk/foo2zjs_20090908dfsg/debian/foo2zjs.postinst
Log:
debian/foo2zjs.postinst: check for firwmares before moving them
Modified: trunk/foo2zjs_20090908dfsg/debian/changelog
===================================================================
--- trunk/foo2zjs_20090908dfsg/debian/changelog 2010-03-22 16:18:46 UTC (rev 219)
+++ trunk/foo2zjs_20090908dfsg/debian/changelog 2010-03-23 10:54:51 UTC (rev 220)
@@ -1,3 +1,11 @@
+foo2zjs (20090908dfsg-3) UNRELEASED; urgency=low
+
+ * debian/foo2zjs.postinst:
+ + move firmware files only if they are present, thus avoiding a
+ "No such file or directory" error from mv during upgrades.
+
+ --
+
foo2zjs (20090908dfsg-2) unstable; urgency=low
[ Luca Capello ]
Modified: trunk/foo2zjs_20090908dfsg/debian/foo2zjs.postinst
===================================================================
--- trunk/foo2zjs_20090908dfsg/debian/foo2zjs.postinst 2010-03-22 16:18:46 UTC (rev 219)
+++ trunk/foo2zjs_20090908dfsg/debian/foo2zjs.postinst 2010-03-23 10:54:51 UTC (rev 220)
@@ -3,7 +3,9 @@
set -e
if [ "$1" = configure ]; then
- mv /usr/share/foo2zjs/firmware/*.dl /lib/firmware/hp/ 2>/dev/null
+ if ls /usr/share/foo2zjs/firmware/*.dl >/dev/null 2>/dev/null; then
+ mv /usr/share/foo2zjs/firmware/*.dl /lib/firmware/hp/ 2>/dev/null
+ fi
fi
#DEBHELPER#
More information about the Foo2zjs-commits
mailing list