~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to update-seeds

  • Committer: Steve Langasek
  • Date: 2023-03-16 16:14:41 UTC
  • Revision ID: steve.langasek@canonical.com-20230316161441-mxsr8l6b761groy1
Unset http_proxy before calling bzr.

focal bzr+urllib break when http_proxy is present in the environment.  So
just unset it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
                if [ -n "$git" ]; then
94
94
                        git -C "$dist" pull -f >/dev/null 2>&1
95
95
                else
96
 
                        bzr pull -d "$dist" --overwrite --remember "$branch" >/dev/null 2>&1
 
96
                        http_proxy= bzr pull -d "$dist" --overwrite --remember "$branch" >/dev/null 2>&1
97
97
                fi
98
98
        else
99
99
                if [ -n "$git" ]; then
100
100
                        git clone -b "$(echo $dist | sed 's/.*\.//')" "$branch" "$dist" >/dev/null 2>&1
101
101
                else
102
 
                        bzr branch "$branch" >/dev/null 2>&1
 
102
                        http_proxy= bzr branch "$branch" >/dev/null 2>&1
103
103
                fi
104
104
        fi
105
105
done