Update of /cvsroot/fink/experimental/vasi/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1628
Modified Files:
gcc-field
Log Message:
Don't crash if fed a package-name that isn't in the PDB
Index: gcc-field
===================================================================
RCS file: /cvsroot/fink/experimental/vasi/scripts/gcc-field,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gcc-field 4 Jul 2005 15:18:27 -0000 1.3
+++ gcc-field 21 Dec 2005 16:34:10 -0000 1.4
@@ -149,6 +149,10 @@
my (@nodeb, @status);
for my $pkg (sort @packages) {
my $po = Fink::Package->package_by_name($pkg);
+ if (! defined $po) {
+ print "Could not look up package \"$pkg\"\n";
+ next;
+ }
my $version = latest_version($po->list_versions);
next unless defined $version;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits