On Monday, I decided to start working with unattended again, since I now have time to do so. I noticed that there was now a subversion repository, but I couldn't find any mention of it, so I was going to post a question to this list to ask whether you were intending on using it, or were just experimenting. Before I wrote the letter, I decided to look through the -devel list archives, and I noticed that you had mentioned using subversion there. So, instead of posting to this list, I decided to register to the -devel list and post there.
This morning I got some strange automated responses that included the posts that I made to the -devel list. I am going to include some of the text below, in case somebody here can help explain what they are. ---------------------------------------------------------------- Subject: Benachrichtung zum Übermittlungsstatus (Fehlgeschlagen) From: [email protected] Content: Dies ist eine automatisch erstellte Benachrichtigung über den Zustellstatus. Übermittlung an folgende Empfänger fehlgeschlagen. [email protected] ---------------------------------------------------------------- I'm not sure if I was allowed to post to -devel or not. I did so, since that's where I read the news that the repository was migrating to subversion, but after getting these letters this morning, I'm not sure if that was the appropriate thing to do. My posts don't seem to be rejected, and you can see them here: http://sourceforge.net/mailarchive/forum.php?thread_name=200906011403.53572.umeboshi3%40gmail.com&forum_name=unattended-devel You can see the subject, but the content of the posts are missing. Although if you look here: http://www.mail-archive.com/unattended-devel%40lists.sourceforge.net/msg02034.html You can see the posts, with the content. I'm sorry if I posted to a list that I wasn't allowed to post to. I really can't tell, since I don't speak the language of the mails that I received this morning, and I don't know why the content was removed from the archives on the sourceforge webpage. Please let me know if I'm allowed to post to the -devel list, or if I should just stay subscribed on a read-only basis, or if I need to unsubscribe to it. I am going to attach the two patches I posted here, in case there were problems with the other list. I have finally started using 4.8 and I'm trying to get an xp machine installed. I haven't been successfull yet, as when I get somewhere into the windows updates, the machine won't boot properly. It was late last night when I got to that part and noticed it, so I'll have to try it again today to get a better idea of what is causing the problem. I have also experienced a problem with the get_drive_path function in the todo.pl script. It seems to work just fine until I get to a certain point in the install (I mention a "certain point" as the function seems to work just fine during the earlier parts of the instal). Then the script fails to get the UNC name of the share and stops the install process. This is something that also happened to me in 4.7, but since I just hardcoded the variable instead of calling the function, I had forgotten about it. #$ENV{'Z_PATH'} = get_drive_path ($z); $ENV{'Z_PATH'} = "\\\\ntinstall\\install" ; I didn't get the time to dig into these problems in any detail yesterday, as it was really late when I was able to start testing 4.8 . Hopefully, I'll have more time today to figure out what is happening. -- Thanks: Joseph Rawson
Index: install/tools/script-update =================================================================== --- install/tools/script-update (revision 2986) +++ install/tools/script-update (working copy) @@ -2,23 +2,19 @@ # # This script updates your script files from the official -# unattended cvs repository. +# unattended subversion repository. # # This scripts crawles through your script directory, and -# tries to update every found file from the cvs. You can +# tries to update every found file from the repository. You can # define exceptions in this script. # -# Warning #1: this scripts overwrites YOUR changes to official -# script files without any warning! Please double-check that -# none of your own-written scripts accidentially have the same -# name than any of the official scripts. -# -# Warning #2: it does not add scripts in the cvs that are +# Warning #1: it does not add scripts in the repository that are # not found in your script directory. You have to download -# new scripts once manually. +# new scripts once manually. (This can probably be done +# automatically with "svn ls $SVNURL") # -# Warning #3: you might want to call it as cron job, but -# please be not surprised by broken scripts in the cvs. +# Warning #2: you might want to call it as cron job, but +# please be not surprised by broken scripts in the repository. # This happens from time to time. # @@ -26,27 +22,67 @@ #exceptions=( "win2ksp4-updates.bat" "win2ksp4-symbols.bat" ) exceptions=( ) -# HTTP-Link to the cvs-repository -CVSLINK="http://unattended.cvs.sourceforge.net/unattended/unattended/install/scripts" +get_checksum () { + # retrieve Checksum field from svn info (md5) + svn info $1 | $GREP ^Checksum | $AWK '{print $2}' +} +get_local_md5sum () { + # perform md5sum on file and return just the hash + $MD5SUM $1 | $AWK '{print $1}' +} + + +check_file () { + # perform md5sum on file and compare to svn info + if [ `get_checksum $1` = `get_local_md5sum $2` ] ; then + return 0 + else + return 1 + fi +} + +export_script () { + if ! check_file $1 $1 ; then + $SVN export $SVNEXPORTOPTS $SVNURL/$1 $1.tmp + else + echo "$1 is already up to date." + return 0 + fi + if check_file $1 $1.tmp ; then + echo "$1 downloaded successfully" + else + echo "$1.tmp is incorrect, removing" + rm -f $1.tmp + fi + if ! [ -e $1.orig ]; then + $MV $1 $1.orig + else + echo "$1.orig already exists, not replacing" + fi + $MV $1.tmp $1 +} + +# scripts directory in svn trunk +SVNURL="https://unattended.svn.sourceforge.net/svnroot/unattended/trunk/install/scripts" +SVNEXPORTOPTS="-q" + # paths to needed programs WGET=$(which wget) FIND=$(which find) GREP=$(which grep) SORT=$(which sort) +MD5SUM=$(which md5sum) +SVN=$(which svn) +AWK=$(which awk) +MV=$(which mv) # Change to the scripts directory so paths are correct cd "$(dirname "$0")"/../scripts - -# crawl through the script-dir -for file in $($FIND . -type f | $GREP -v CVS | $SORT) + +for filename in $($FIND . -type f | $GREP -v \\.svn | grep -v \\.orig$ | grep -v \\.tmp$ | grep -v ~$ | $SORT) do - if [[ "${exceptio...@]%%${file##./}}" != "${exceptio...@]}" ]]; then continue; fi - if $WGET --output-document "$file.$$.tmp" $CVSLINK/$file?revision=HEAD - then - mv "$file.$$.tmp" "$file" - else - rm -f "$file.$$.tmp" - fi + if [[ "${exceptio...@]%%${file##./}}" != "${exceptio...@]}" ]]; then continue; fi + export_script $filename done
Index: install/tools/prepare =================================================================== --- install/tools/prepare (revision 2986) +++ install/tools/prepare (working copy) @@ -13,7 +13,7 @@ # Default to ENU if nothing passed in as first arg if [ ".$1" == "." ]; then WINLANG="ENU"; else WINLANG="$1"; fi -for cmdfile in `egrep -lri "URL\|($WINLANG|ALL)" scripts/$2`; do +for cmdfile in `egrep -lri "URL\|($WINLANG|ALL)" scripts/$2 | grep -v svn-base`; do echo Processing $cmdfile
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info
