prevent uninitiliased variable.
git-svn-id: http://emdebian.org/svn/current@6881 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
parent
58b053ad2c
commit
a50b40c3a5
1 changed files with 6 additions and 3 deletions
|
@ -160,9 +160,12 @@ $libdir = "var/lib/apt/"; # lists
|
|||
$etcdir = "etc/apt/"; # sources
|
||||
$dpkgdir = "var/lib/dpkg/"; # state
|
||||
|
||||
my $ret = mkdir ("$dir") if (not -d "$dir");
|
||||
die ("Unable to create directory '$dir'\n")
|
||||
if ($ret == 0);
|
||||
if (not -d "$dir")
|
||||
{
|
||||
my $ret = mkdir ("$dir");
|
||||
die ("Unable to create directory '$dir' $!\n")
|
||||
if ($ret == 0);
|
||||
}
|
||||
$dir = `realpath $dir`;
|
||||
chomp ($dir);
|
||||
$dir .= ($dir =~ m:/$:) ? '' : "/";
|
||||
|
|
Loading…
Reference in a new issue