~elementary-os/ubuntu-package-imports/ubiquity-trusty

« back to all changes in this revision

Viewing changes to d-i/source/choose-mirror/mktemplates

  • Committer: RabbitBot
  • Date: 2014-03-11 17:51:53 UTC
  • Revision ID: rabbitbot@elementaryos.org-20140311175153-bup0uc9mps3h4wpm
updated to version 2.17.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
HTTPCHOICES="$(country_names debian/httplist-countries)"
30
30
printf " Done.\n"
31
31
 
 
32
printf "Creating the list of countries for HTTPS mirrors..."
 
33
HTTPSCODECHOICES="$(cut -f1 debian/httpslist-countries | xargs | sed 's/ /, /g')"
 
34
HTTPSCHOICES="$(country_names debian/httpslist-countries)"
 
35
printf " Done.\n"
 
36
 
32
37
printf "Creating the list of countries for FTP mirrors..."
33
38
FTPCODECHOICES="$(cut -f1 debian/ftplist-countries | xargs | sed 's/ /, /g')"
34
39
FTPCHOICES="$(country_names debian/ftplist-countries)"
42
47
        done
43
48
) | debian/templates-build.pl "$DEB_HOST_ARCH" | \
44
49
    perl -pe 'if (m,http/countries$,) { $found = 2; } elsif ($found and /^Choices-C:/ && length "'"$HTTPCODECHOICES"'") { s/$/, '"$HTTPCODECHOICES"'/; $found -= 1; }  elsif ($found and /^__Choices:/ && length "'"$HTTPCHOICES"'") { s/$/'"$HTTPCHOICES"'/; $found -= 1; }' | \
 
50
    perl -pe 'if (m,https/countries$,) { $found = 2; } elsif ($found and /^Choices-C:/ && length "'"$HTTPSCODECHOICES"'") { s/$/, '"$HTTPSCODECHOICES"'/; $found -= 1; }  elsif ($found and /^__Choices:/ && length "'"$HTTPSCHOICES"'") { s/$/'"$HTTPSCHOICES"'/; $found -= 1; }' | \
45
51
    perl -pe 'if (m,ftp/countries$,) { $found = 2; } elsif ($found and /^Choices-C:/ && length "'"$FTPCODECHOICES"'") { s/$/, '"$FTPCODECHOICES"'/;  $found -= 1; } elsif ($found and /^__Choices:/ && length "'"$FTPCHOICES"'") { s/$/'"$FTPCHOICES"'/;  $found -= 1; }' \
46
52
    >debian/templates.tmp
47
53
printf " Done.\n"