aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-11 15:12:48 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-11 15:12:48 +0100
commita46751b036fe1d06f35122296c49543796b58643 (patch)
tree8cce2686f3ba47c43f55742d2e89fefd27a1f4ce /lib/AdminPanel/Rpmdragora
parent35359e4f0abdf7bccb915866cd464cc5a0ea5474 (diff)
downloadmanatools-a46751b036fe1d06f35122296c49543796b58643.tar
manatools-a46751b036fe1d06f35122296c49543796b58643.tar.gz
manatools-a46751b036fe1d06f35122296c49543796b58643.tar.bz2
manatools-a46751b036fe1d06f35122296c49543796b58643.tar.xz
manatools-a46751b036fe1d06f35122296c49543796b58643.zip
defualt is empty string not undefined
Diffstat (limited to 'lib/AdminPanel/Rpmdragora')
-rw-r--r--lib/AdminPanel/Rpmdragora/open_db.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AdminPanel/Rpmdragora/open_db.pm b/lib/AdminPanel/Rpmdragora/open_db.pm
index b8239d94..e2e6562a 100644
--- a/lib/AdminPanel/Rpmdragora/open_db.pm
+++ b/lib/AdminPanel/Rpmdragora/open_db.pm
@@ -76,7 +76,7 @@ sub open_rpm_db {
$db = new URPM;
$db->parse_synthesis("$::env/rpmdb.cz");
} else {
- $db = URPM::DB::open($::rpmdragora_options{'rpm-root'}[0]);
+ $db = URPM::DB::open($::rpmdragora_options{'rpm-root'}[0]||'');
}
$db or die "Couldn't open RPM DB (" . ($::env ? "$::env/rpmdb.cz" : $::rpmdragora_options{'rpm-root'}[0]) . ")";
}