Commit 3b30c14c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to repo code.

parent 82e7f811
......@@ -636,10 +636,12 @@ elsif (!$localuser) {
fatal("Project $pid does not exist");
}
}
$tmp = APT_Profile::SetRepo(\$rspecstr, $profile->repourl(),
$reporef, $repohash, $geniuser, \$errmsg);
if ($tmp) {
($tmp < 0 ? fatal($errmsg) : UserError($errmsg));
if (defined($profile->repourl())) {
$tmp = APT_Profile::SetRepo(\$rspecstr, $profile->repourl(),
$reporef, $repohash, $geniuser, \$errmsg);
if ($tmp) {
($tmp < 0 ? fatal($errmsg) : UserError($errmsg));
}
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment