http://search.cpan.org/~vvelox/FreeBSD-Pkgs-FindUpdates-0.2.1/lib/FreeBSD/Pkgs/FindUpdates.pm SYNOPSIS This does use FreeBSD::Ports::INDEXhash. Thus if you want to specifiy the location of the index file, you will want to see the supported methodes for it in that module. use FreeBSD::Pkgs::FindUpdates; #initiates the module my $pkgsupdate = FreeBSD::Pkgs::FindUpdates->new(); #finds changes my %changes=$pkgsupdate->find(); #prints the upgraded stuff while(my ($name, $pkg) = each %{$changes{upgrade}}){ print $name.' updated from "'. $pkg->{oldversion}.'" to "'. $pkg->{newversion}."\"\n"; } #prints the downgraded stuff while(my ($name, $pkg) = each %{$changes{upgrade}}){ print $name.' updated from "'. $pkg->{oldversion}.'" to "'. $pkg->{newversion}."\"\n"; } How-To-Repeat: 1: Check to see if it exists in the ports tree. 2: 3: See it does not. 4: Unshar and enjoy.
Responsible Changed From-To: freebsd-ports-bugs->miwi I'll take it.
miwi 2009-04-30 22:47:20 UTC FreeBSD ports repository Modified files: ports-mgmt Makefile Added files: ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates Makefile distinfo pkg-descr pkg-plist Log: Finds updates for FreeBSD pkgs by checking the ports index. pkg_findupdates - Finds updated packages. pkg_bupdate - Perform a binary packages update. WWW: http://search.cpan.org/dist/FreeBSD-Pkgs-FindUpdates/ PR: 133404 Submitted by: "Zane C.B." <vvelox@vvelox.net> Revision Changes Path 1.23 +1 -0 ports/ports-mgmt/Makefile 1.1 +27 -0 ports/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/Makefile (new) 1.1 +3 -0 ports/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/distinfo (new) 1.1 +6 -0 ports/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-descr (new) 1.1 +10 -0 ports/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-plist (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!