[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt and rsync... I know...

On Sun, Jan 18, 2004 at 12:39:35PM -0500, Daniel Burrows wrote:
> On Sun, Jan 18, 2004 at 03:39:57PM +0000, Mark Howard <mh@debian.org> was heard to say:
> > On Sun, Jan 18, 2004 at 02:16:59PM +0000, Henning Makholm wrote:
> > > It seems to me that much of such grief could be averted more easily by
> > > inventing an easy way to inspect the changelogs before downloading the
> > > entire set of .debs, and then decide package-for-package which ones to
> > > upgrade.
> > 
> > http://packages.debian.org/changelogs/
> > 
> > Would be nice to have it integrated into aptitude though.
>   Support exists for downloading a changelog (dating to back in the
> old days when changelogs were previously posted on p.d.o), but the code
> will have to change to take into account the new location.  I guess it
> can be deduced from the location of the binary package in the pool.

This sorta works:

if [[ "${1:0:3}" == "lib" ]]; then TAG=${1:0:4}
else TAG=${1:0:1}; fi
VER=`apt-cache show $1 | grep -m1 -x "Version: .*" | \
  sed "s/Version: \(.*\)/\1/"`
wget -O- $URL 2> /dev/null

but there is some problem with my initial test case, bash:
$ apt-cache show bash | grep Version
Version: 2.05b-12

But the URL for bash's changelog is:

There's an extra 2 in there that messes up the script.
But the script works for the test case "base-files", at least.

Reply to: