diff options
-rwxr-xr-x | createrepomddeps | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/createrepomddeps b/createrepomddeps index 4347005..e183fc0 100755 --- a/createrepomddeps +++ b/createrepomddeps @@ -46,6 +46,12 @@ my $opt_bc; 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) = @_; @@ -111,8 +117,8 @@ for my $url (@ARGV) { $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; |