aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-09 13:14:45 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-09 13:14:45 +0200
commitc9fcf2aed851409a227b66ee46fae5537380bfb4 (patch)
tree08f45b3adcaec00e07e4c3d93a0b4a5e481cf60e /lib
parent3b17fc690db8aab9761c44991ad6935b94fc00dc (diff)
downloadcolin-keep-c9fcf2aed851409a227b66ee46fae5537380bfb4.tar
colin-keep-c9fcf2aed851409a227b66ee46fae5537380bfb4.tar.gz
colin-keep-c9fcf2aed851409a227b66ee46fae5537380bfb4.tar.bz2
colin-keep-c9fcf2aed851409a227b66ee46fae5537380bfb4.tar.xz
colin-keep-c9fcf2aed851409a227b66ee46fae5537380bfb4.zip
Fixed a warning for undef value
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Rpmdragora/open_db.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AdminPanel/Rpmdragora/open_db.pm b/lib/AdminPanel/Rpmdragora/open_db.pm
index e795696..dafe076 100644
--- a/lib/AdminPanel/Rpmdragora/open_db.pm
+++ b/lib/AdminPanel/Rpmdragora/open_db.pm
@@ -120,8 +120,9 @@ sub fast_open_urpmi_db() {
sub is_it_a_devel_distro() {
state $res;
return $res if defined $res;
-
- my $path = $::rpmdragora_options{'urpmi-root'}[0] . '/etc/product.id';
+
+ my $path = '/etc/product.id';
+ $path = $::rpmdragora_options{'urpmi-root'}[0] . $path if defined($::rpmdragora_options{'urpmi-root'}[0]);
$res = common::parse_LDAP_namespace_structure(cat_($path))->{branch} eq 'Devel';
return $res;
}