From: Anas Nashif Date: Tue, 16 Oct 2012 13:31:14 +0000 (-0700) Subject: Revert "Remove trailing slash for proxy env." X-Git-Tag: 0.2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fe57524eef16e7f48b915656b3ffcdd2163d189;p=tools%2Fdepanneur.git Revert "Remove trailing slash for proxy env." Sorry, but proxy settings and handling is not part of depanneur, fix it where it occurs. This reverts commit c5c7b796ad5d67c6bf5fb0e9e7d1c7d7443ae4e7 --- diff --git a/depanneur b/depanneur index 8bbf70f..c77126c 100755 --- a/depanneur +++ b/depanneur @@ -446,7 +446,7 @@ sub clean_cache { sub query_git_commit_rev { my ($base, $commit_id) = @_; - open(my $git, '-|', "git --git-dir $base/.git rev-parse $commit_id") || + open(my $git, '-|', "git --git-dir $base/.git rev-parse $commit_id") || die "query git commit reversion($commit_id) failed: $!"; my $rev = readline($git); close($git); @@ -924,20 +924,9 @@ sub build_package { } -sub strip_trailing_slash_for_proxy_env { - for my $key ("http_proxy", "https_proxy") { - if (exists $ENV{$key} && $ENV{$key} =~ m#/$#) { - #build could fail if proxy url ends with '/' - #failed: 500 Can't connect to xxx:xxx - $ENV{$key} =~ s#/+$##; - debug("strip trailing slash for env $key"); - } - } -} -# MAIN -strip_trailing_slash_for_proxy_env; +# MAIN info("start building packages from: " . $package_path . " ($style)"); if ($buildall || @packs == 0 ) {