Hello community, here is the log from the commit of package pin checked in at Mon Nov 6 22:40:23 CET 2006. -------- --- pin/pin.changes 2006-01-25 21:47:25.000000000 +0100 +++ /mounts/work_src_done/STABLE/pin/pin.changes 2006-11-06 15:31:21.000000000 +0100 @@ -1,0 +2,6 @@ +Mon Nov 6 15:29:03 CET 2006 - mlasars@suse.de + +- fixed wrong su command (bug #188068) +- throw error message if cd/dvd is not mounted + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pin.spec ++++++ --- /var/tmp/diff_new_pack.xpLCJf/_old 2006-11-06 22:39:45.000000000 +0100 +++ /var/tmp/diff_new_pack.xpLCJf/_new 2006-11-06 22:39:45.000000000 +0100 @@ -1,21 +1,21 @@ # -# spec file for package pin (Version 0.35) +# spec file for package pin (Version 0.36) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: pin URL: http://www.hennevogel.de/scripts/pin/ -License: GPL +License: GNU General Public License (GPL) - all versions Group: Documentation/SuSE Autoreqprov: on -Version: 0.35 +Version: 0.36 Release: 1 Source: pin Source1: pin.1.gz @@ -52,6 +52,9 @@ %ghost %_localstatedir/lib/%name/ARCHIVES.gz %changelog -n pin +* Mon Nov 06 2006 - mlasars@suse.de +- fixed wrong su command (bug #188068) +- throw error message if cd/dvd is not mounted * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Mon Jan 23 2006 - mlasars@suse.de ++++++ pin ++++++ --- pin/pin 2006-01-23 15:38:30.000000000 +0100 +++ /mounts/work_src_done/STABLE/pin/pin 2006-11-06 15:27:01.000000000 +0100 @@ -65,8 +65,10 @@ # # 2005 09 06 0.34 updated text (bug #115333) # 2006 01 23 0.35 fixed error in cd/dvd handling (bug #144395) +# 2006 08 01 0.36 fixed wrong su command (bug #188068) +# 2006 08 05 throw error message if cd/dvd is not mounted (instead of trying to copy "/ARCHIVES.gz") -VER=0.35 +VER=0.36 OUT_FILE=$(/bin/mktemp /tmp/.pin_packinfo_$$.XXXXXX) || { echo "pin: can not create temporary file" >& 2; exit 1; } ARC_DIR_OLD="/usr/share/pin/" ARC_DIR="/var/lib/pin/" # dont forget the / at end! @@ -138,6 +140,7 @@ fi USED_DIR="`mount | grep "$USED_DEVICE" | cut -f3 -d " "`" + [ -z "$USED_DIR" ] && { echo -e "\n ERROR: CD/DVD not mounted" >&2; exit 1; } CDROM="$USED_DIR" @@ -169,7 +172,7 @@ if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then echo -e "\n *** pin found no ARCHIVES_"$USED_VERSION".gz file in $ARC_DIR\n pin will copy the files, please enter rootpassword :\n\n" - su - -c "$(basename $0) $@" + su - root -- "$0" "$@" exit fi # test for old ARC files ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org