mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 07:54:03 +00:00 
			
		
		
		
	mk-sbuild: fix embarrasing bad logic error in http_proxy usage. Thanks Scott
This commit is contained in:
		
						commit
						c4a2361451
					
				@ -480,9 +480,9 @@ if [ -n "$DEBOOTSTRAP_EXCLUDE" ] ; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# if http_proxy is set in the environment (even empty) set 'proxy' to it
 | 
			
		||||
[ "$proxy" = "_unset_" -a "${DEBOOTSTRAP_PROXY-xx}" = "xx" ] &&
 | 
			
		||||
[ "$proxy" = "_unset_" -a "${DEBOOTSTRAP_PROXY-xx}" != "xx" ] &&
 | 
			
		||||
    proxy=${DEBOOTSTRAP_PROXY}
 | 
			
		||||
[ "$proxy" = "_unset_" -a "${http_proxy-xx}" = "xx" ] && proxy=${http_proxy}
 | 
			
		||||
[ "$proxy" = "_unset_" -a "${http_proxy-xx}" != "xx" ] && proxy=${http_proxy}
 | 
			
		||||
if [ "$proxy" = "_unset_" ]; then
 | 
			
		||||
    _out=$(apt-config shell x Acquire::HTTP::Proxy) &&
 | 
			
		||||
        _out=$(sh -c 'eval $1 && echo $x' -- "$_out") && [ -n "$_out" ] &&
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user