aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-18 17:02:24 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-18 17:02:24 +0000
commitff475e877d85a61e2e657687177d300db91fe985 (patch)
tree47e0c2c0919a185fa7005abc27080b19e952d2e5
parentbc2f25ad21d06a990092252bcdfa1801c4956339 (diff)
downloadrpmdrake-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-xrpmdrake5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index ecfda293..dedfc357 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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;