From e8891b5794501a81404c369f8874bea0791a486c Mon Sep 17 00:00:00 2001 From: sjungels Date: Mon, 10 Aug 2009 14:16:43 +0000 Subject: [PATCH] Merged patch that adds --noupdate flag git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@12 f2a461e8-04e4-11de-bcc6-d9108be23e13 --- apt-cyg | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apt-cyg b/apt-cyg index 448aae7..5263acb 100644 --- a/apt-cyg +++ b/apt-cyg @@ -44,6 +44,7 @@ function usage() echo " --mirror, -m : set mirror" echo " --cache, -c : set cache" echo " --file, -f : read package names from file" + echo " --noupdate, -u : don't update setup.ini from mirror" echo " --help" echo " --version" } @@ -52,10 +53,10 @@ function usage() function version() { - echo "apt-cyg version 0.56" + echo "apt-cyg version 0.57" echo "Written by Stephen Jungels" echo "" - echo "Copyright (c) 2005, 2006 Stephen Jungels. Released under the GPL." + echo "Copyright (c) 2005-9 Stephen Jungels. Released under the GPL." } @@ -89,7 +90,7 @@ function findworkspace() function getsetup() { - if test "$noscripts" == "0" + if test "$noscripts" == "0" -a "$noupdate" == "0" then touch setup.ini mv setup.ini setup.ini-save @@ -126,6 +127,7 @@ function checkpackages() # process options noscripts=0 +noupdate=0 file="" dofile=0 command="" @@ -151,6 +153,11 @@ do shift ;; + --noupdate|-u) + noupdate=1 + shift + ;; + --help) usage exit 0