diff -u pm-utils-0.99.2/debian/changelog pm-utils-0.99.2/debian/changelog --- pm-utils-0.99.2/debian/changelog +++ pm-utils-0.99.2/debian/changelog @@ -1,3 +1,11 @@ +pm-utils (0.99.2-3ubuntu2) hardy; urgency=low + + * debian/patches/25-functions-modunload-regex.patch: + - in modunload(): Fix literally quoted regular expression to + make SUSPEND_MODULES work (LP: #188261) + + -- John Dong Fri, 01 Feb 2008 23:49:53 -0500 + pm-utils (0.99.2-3ubuntu1) hardy; urgency=low * debian/patches/99-fixup-ubuntu-behaviour.patch only in patch2: unchanged: --- pm-utils-0.99.2.orig/debian/patches/25-functions-modunload-regex.patch +++ pm-utils-0.99.2/debian/patches/25-functions-modunload-regex.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' pm-utils-0.99.2/pm/functions pm-utils-0.99.2.new/pm/functions +--- pm-utils-0.99.2/pm/functions 2008-02-01 23:48:48.000000000 -0500 ++++ pm-utils-0.99.2.new/pm/functions 2008-02-01 23:49:05.000000000 -0500 +@@ -230,7 +230,7 @@ + # if the module was not loaded, also return 0 since this is no error. + # if no module was unloaded successfully, return 1 + while read MOD D C USED D; do +- [[ "$MOD" =~ "$UNL" ]] || continue ++ [[ "$MOD" =~ $UNL ]] || continue + if [ "$USED" == "-" ]; then + _rmmod $MOD $C + RET=$?