Change-Id: I26a391de6c1e0c18bc9aeff7f31294aad0ada6b6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
my $opt_zypp;
my $cachedir = "/var/cache/build";
+sub hide_passwd {
+ my $url = shift;
+ $url =~ s|://[^@]*@|://|;
+ return $url
+}
+
sub printold {
my ($pkg, $baseurl, $old_seen) = @_;
$baseurl .= '/' unless $baseurl =~ /\/$/;
if (! -s "${dir}repodata/repomd.xml") {
- die("zypp repo $url is not up to date, please refresh first\n") if $opt_zypp;
- die("repo $url does not contain a repomd.xml file\n");
+ die("zypp repo " . hide_passwd($url) . " is not up to date, please refresh first\n") if $opt_zypp;
+ die("repo " . hide_passwd($url) . " does not contain a repomd.xml file\n");
}
my @primaryfiles;