On Thu, Aug 02, 2001 at 02:31:20AM +0200, Falk Hueffner wrote:
> method is wasteful because it downloads all dependencies. So I suggest
> this as a workaround till we can get apt-get to ignore dependencies
> *completely*, slightly modified from Ethan's suggestion:
>
> ##
> ## Download a package like apt-get would do; only ignore dependencies.
> ## This is a hack. Should apt-get ever get an option to do that, it
> ## should be used instead.
> ##
> fake_get () {
> # HACK: we assume the first mirror is correct...
> local MIRROR="$(awk '/^deb / {print $2; exit}' sources.list)"
> for i in "$@" ; do
> # HACK: we assume the first package is correct...
> local PACKAGE="$(apt-cache show $i | awk '/^Filename:/ {print $2; exit}')"
> debug "downloading " $MIRROR/$PACKAGE
> (cd $archive/cache/archives && wget -q "$MIRROR/$PACKAGE")
> done
> }
the only problem you may run into with this is apt-get adds the
archetecture to the filename, the filename on the mirror do not have
that. i don't know whether the glop of shell scripts care about that
or not..
--
Ethan Benson
http://www.alaska.net/~erbenson/
Attachment:
pgp075XnoFVaP.pgp
Description: PGP signature