~ubuntu-branches/ubuntu/precise/grub2-signed/precise-proposed

« back to all changes in this revision

Viewing changes to download-grub2

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-10-15 06:48:05 UTC
  • Revision ID: package-import@ubuntu.com-20121015064805-smtxehw3k3oqualx
Tags: 1.9
Download the signed image from the correct pocket.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from urllib.request import urlopen
7
7
 
8
8
import apt
9
 
from aptsources.distro import get_distro
10
9
 
11
10
cache = apt.Cache()
12
11
grub_efi_amd64 = cache["grub-efi-amd64"].candidate
13
12
pool_parsed = urlparse(grub_efi_amd64.uri)
14
13
dists_dir = "/dists/%s/main/uefi/grub2-%s/current/" % (
15
 
    get_distro().codename, grub_efi_amd64.architecture)
 
14
    grub_efi_amd64.origins[0].archive, grub_efi_amd64.architecture)
16
15
 
17
16
for base in "gcdx64.efi.signed", "grubx64.efi.signed", "version":
18
17
    dists_parsed = list(pool_parsed)