diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-18 17:02:24 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-18 17:02:24 +0000 |
commit | ff475e877d85a61e2e657687177d300db91fe985 (patch) | |
tree | 47e0c2c0919a185fa7005abc27080b19e952d2e5 | |
parent | bc2f25ad21d06a990092252bcdfa1801c4956339 (diff) | |
download | rpmdrake-ff475e877d85a61e2e657687177d300db91fe985.tar rpmdrake-ff475e877d85a61e2e657687177d300db91fe985.tar.gz rpmdrake-ff475e877d85a61e2e657687177d300db91fe985.tar.bz2 rpmdrake-ff475e877d85a61e2e657687177d300db91fe985.tar.xz rpmdrake-ff475e877d85a61e2e657687177d300db91fe985.zip |
Don't crash if there is no compssUsers.flat
-rwxr-xr-x | rpmdrake | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -307,7 +307,10 @@ sub parse_compssUsers_flat { my (%compssUsers, $category); my $compss = '/var/lib/urpmi/compssUsers.flat'; -r $compss or $compss = '/usr/share/rpmdrake/compssUsers.flat.default'; - -r $compss or die "Internal error, please report"; + -r $compss or do { + print STDERR "No compssUsers.flat file found\n"; + return undef; + }; foreach (cat_($compss)) { s/#.*//; /^\s*$/ and next; |