Subject: Re: package upgrade notify, 1st shot (not so..)
To: Thomas Klausner <wiz@NetBSD.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 10/26/2004 14:01:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 25 Oct 2004, Thomas Klausner wrote:

> - checking for newer version of archivers/gcpio
> \ actual distname version: 2.5
> \ master site: ftp://ftp.gnu.org/pub/gnu/cpio/
> Can't call method "login" on an undefined value at ./pkg_notify line 74.
> Cannot connect to site: Net::FTP: connect: Invalid argument$

fixed

> Packages using MASTER_SITE_LOCAL should be skipped.

fixed

> Some packages have the version in the pathname; checking
> there won't always produce the wanted result (but there's no
> easy way to check, except go one or two or .. levels higher
> and look for other paths -- not easy to generalize automatically,
> I think). Examples: bzip2; gnome

Ok this one is a nightmare :) I now check if there's a HOMEPAGE first, 
in many cases, HOMEPAGE has a direct link to latest version, this fixes 
for example bzip2-like packages. Also, as this absolutely don't fix 
gnome-like hosted projects, i included a parent directory lookup if we are 
in the case of a "clean package" (DISTNAME has major and minor). This 
should work for gnome* and probably others.

> Btw, how about a pkgsrc-wip package for it? :) It's getting
> useful!

Yes i was waiting for something more or less usable, i'll commit it ASAP

Thanks everyone for your testings, feedback always welcome

regards

- -------------------------
iMil <imil@home.imil.net>                                                 _
      http://gcu-squad.org                          ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBfjycFG3BlGWyzUIRAsqxAJ9PxZTuoPnrfJTn7nUMREPfseQPngCZAWIi
NN5DIz9CYrQOn1CmidQZ930=
=4DvX
-----END PGP SIGNATURE-----