Skip to content

Commit

Permalink
Stop updating setup.ini
Browse files Browse the repository at this point in the history
Applies to

    apt-cyg install
    apt-cyg list
    apt-cyg show

This is in line with these analogues

    apt-get install
    dpkg --list
    apt-cache show

which do not run an update each time the command is called
  • Loading branch information
Steven Penny committed May 5, 2014
1 parent 74da8e7 commit 9f1fb56
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function usage () {
' -c, --cache <dir> set cache'
' -f, --file <file> read package names from file'
' -m, --mirror <url> set mirror'
' -u, --noupdate don’t update setup.ini from mirror'
' --help'
' --version'
)
Expand Down Expand Up @@ -98,7 +97,7 @@ function findworkspace()

function getsetup()
{
(( noscripts || noupdate )) && return
(( noscripts )) && return
touch setup.ini
mv setup.ini setup.ini-save
wget -N $mirror/$ARCH/setup.bz2
Expand Down Expand Up @@ -129,7 +128,6 @@ function checkpackages()
# process options
dofile=0
noscripts=0
noupdate=0
command=''
file=''
filepackages=''
Expand All @@ -154,11 +152,6 @@ do
shift
;;

--noupdate | -u)
noupdate=1
shift
;;

--help)
usage
exit 0
Expand Down Expand Up @@ -222,7 +215,6 @@ case "$command" in
then
checkpackages
findworkspace
getsetup
for pkg in $packages
do
echo
Expand All @@ -241,7 +233,6 @@ case "$command" in
show)
checkpackages
findworkspace
getsetup
for pkg in $packages
do
echo
Expand Down Expand Up @@ -303,7 +294,6 @@ case "$command" in
install)
checkpackages
findworkspace
getsetup
for pkg in $packages
do

Expand Down

0 comments on commit 9f1fb56

Please sign in to comment.