[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-cvs
Subject:    [IPCop-cvs] ipcop/updates/1.4.17 setup,1.1.2.16,1.1.2.17
From:       Gilles Espinasse <gespinasse () users ! sourceforge ! net>
Date:       2007-10-20 10:59:39
Message-ID: E1IjC3Q-0003uA-6q () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ipcop/ipcop/updates/1.4.17
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv13082/updates/1.4.17

Modified Files:
      Tag: IPCOP_v1_4_0
	setup 
Log Message:
Allow to apply same package more than once.
This is intended to ease life of rc tester, so they could apply final
update if a change happen.

A bit more work need to be done in installpackage because there a check
is made that prohibits install of a package with same information file

Protect when tar patch.tar.gz fail
We really should stop here as we do not know on wich file extraction has failed.

That event could been considered curious as in previous steps, we require more
 spaces (twice package size) than the supplemental space used by replaced files.
But it happen on low disk space condition (even with twice package size + 2MB free).


Index: setup
===================================================================
RCS file: /cvsroot/ipcop/ipcop/updates/1.4.17/Attic/setup,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -C2 -d -r1.1.2.16 -r1.1.2.17
*** setup	16 Oct 2007 22:21:14 -0000	1.1.2.16
--- setup	20 Oct 2007 10:59:34 -0000	1.1.2.17
***************
*** 6,11 ****
  
  CURRENTVERSION=`/usr/bin/perl -e "require '/var/ipcop/general-functions.pl';print \
                \\$General::version;"`
! if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" ]; then
! 	echo "You are not running IPCop v$PREVIOUSVERSION for this patch to install."
  	echo "Aborting installation."
  	exit -1
--- 6,11 ----
  
  CURRENTVERSION=`/usr/bin/perl -e "require '/var/ipcop/general-functions.pl';print \
                \\$General::version;"`
! if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" -a "$CURRENTVERSION" != \
                "$UPGRADEVERSION" ]; then
! 	echo "You are not running IPCop v$PREVIOUSVERSION or v$UPGRADEVERSION for this \
patch to install."  echo "Aborting installation."
  	exit -1
***************
*** 28,31 ****
--- 28,35 ----
  
  /bin/tar -zxpf patch.tar.gz -C /
+ if [ $? -ne 0 ]; then
+ 	/usr/bin/logger -t installpackage "Error extracting patch.tar.gz, need more free \
space on disk" + 	exit 4 # ERRORTAR
+ fi
  
  # because of new libpcap


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
IPCop-cvs mailing list
IPCop-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic