Hello community, here is the log from the commit of package pm-utils for openSUSE:Factory checked in at Mon Jul 5 17:48:56 CEST 2010. -------- --- pm-utils/pm-utils.changes 2010-06-29 13:52:46.000000000 +0200 +++ pm-utils/pm-utils.changes 2010-07-05 15:53:07.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Jul 5 13:40:49 UTC 2010 - seife@opensuse.org + +- bash scripts are best if their logic is correct (bnc#619734) + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pm-utils.spec ++++++ --- /var/tmp/diff_new_pack.B3NZnX/_old 2010-07-05 17:46:16.000000000 +0200 +++ /var/tmp/diff_new_pack.B3NZnX/_new 2010-07-05 17:46:16.000000000 +0200 @@ -23,7 +23,7 @@ Name: pm-utils Version: 1.3.0 -Release: 7 +Release: 8 Summary: Tools to suspend and hibernate computers License: GPLv2+ Group: System/Base ++++++ pm-utils-1.3.0-direct-on_ac_power.patch ++++++ --- /var/tmp/diff_new_pack.B3NZnX/_old 2010-07-05 17:46:16.000000000 +0200 +++ /var/tmp/diff_new_pack.B3NZnX/_new 2010-07-05 17:46:16.000000000 +0200 @@ -1,8 +1,10 @@ Index: pm-utils-1.3.0/src/on_ac_power =================================================================== ---- pm-utils-1.3.0.orig/src/on_ac_power 2010-06-29 13:49:48.000000000 +0200 -+++ pm-utils-1.3.0/src/on_ac_power 2010-06-29 13:51:52.411624010 +0200 -@@ -30,49 +30,16 @@ +--- pm-utils-1.3.0.orig/src/on_ac_power ++++ pm-utils-1.3.0/src/on_ac_power +@@ -28,51 +28,24 @@ + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # @@ -34,6 +36,12 @@ + # Our default return changes to failed. + ret=1 + read -r ps_status < "$ps/online" ++ # online = 1 means we are on AC power => return code 0 ++ if [ "$ps_status" = "1" ]; then ++ ret=0 ++ # there might be multiple supplies. One online is enough, so break out ++ break; ++ fi +done -# Check for AC/DC/etc adapters ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org