diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-12-11 15:12:48 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-12-11 15:12:48 +0100 |
commit | a46751b036fe1d06f35122296c49543796b58643 (patch) | |
tree | 8cce2686f3ba47c43f55742d2e89fefd27a1f4ce /lib | |
parent | 35359e4f0abdf7bccb915866cd464cc5a0ea5474 (diff) | |
download | manatools-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')
-rw-r--r-- | lib/AdminPanel/Rpmdragora/open_db.pm | 2 |
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]) . ")"; } |