summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-05-10 15:54:44 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-05-10 15:54:44 +0900
commit2e503ca077f0306c98cc96ed311bdc1cb9c56d53 (patch)
tree9e8765833a8257f451e42af875f7e758edc32d18
parente7b77abb6abc2fdec9f3b2dc532de40bab41429f (diff)
parent1b4b5ed73cd0f2af8d1d920de0b1c2b6665c2cf5 (diff)
downloadbuild-2e503ca077f0306c98cc96ed311bdc1cb9c56d53.tar.gz
build-2e503ca077f0306c98cc96ed311bdc1cb9c56d53.tar.bz2
build-2e503ca077f0306c98cc96ed311bdc1cb9c56d53.zip
Merge branch 'devel' of ssh://review.tizen.org:29418/tools/build into devel
Change-Id: Icf34153dceacc78974ca7a32aea500bb61d0e60f
-rwxr-xr-xcreaterepomddeps10
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;