Skip to content

Commit

Permalink
added edge case for obsolete packages
Browse files Browse the repository at this point in the history
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@18 f2a461e8-04e4-11de-bcc6-d9108be23e13
  • Loading branch information
sjungels committed Apr 27, 2010
1 parent 25a51eb commit ee3f7b8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions apt-cyg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/bin/bash

# apt-cyg: install tool for cygwin similar to debian apt-get
Expand Down Expand Up @@ -323,12 +324,18 @@ case "$command" in
exit 1
fi
echo Found package $pkg



# download and unpack the bz2 file

# pick the latest version, which comes first
install=`cat "release/$pkg/desc" | awk '/^install: / { print $2; exit }'`

if test "-$install-" = "--"
then
echo "Could not find \"install\" in package description: obsolete package?"
exit 1
fi

file=`basename $install`
cd "release/$pkg"
wget -nc $mirror/$install
Expand Down

0 comments on commit ee3f7b8

Please sign in to comment.