prevent uninitiliased variable.

git-svn-id: http://emdebian.org/svn/current@6881 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-03-28 06:40:49 +00:00
parent 58b053ad2c
commit a50b40c3a5

View file

@ -160,9 +160,12 @@ $libdir = "var/lib/apt/"; # lists
$etcdir = "etc/apt/"; # sources $etcdir = "etc/apt/"; # sources
$dpkgdir = "var/lib/dpkg/"; # state $dpkgdir = "var/lib/dpkg/"; # state
my $ret = mkdir ("$dir") if (not -d "$dir"); if (not -d "$dir")
die ("Unable to create directory '$dir'\n") {
if ($ret == 0); my $ret = mkdir ("$dir");
die ("Unable to create directory '$dir' $!\n")
if ($ret == 0);
}
$dir = `realpath $dir`; $dir = `realpath $dir`;
chomp ($dir); chomp ($dir);
$dir .= ($dir =~ m:/$:) ? '' : "/"; $dir .= ($dir =~ m:/$:) ? '' : "/";