~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to bin/wait-for-package

  • Committer: Sean Davis
  • Date: 2018-03-28 10:32:07 UTC
  • mfrom: (1559.1.156 ubuntu-cdimage)
  • Revision ID: smd.seandavis@gmail.com-20180328103207-o6s9d6h0hxxh8eqc
Merge lp:ubuntu-cdimage rev 1715

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        mirror = find_mirror(config, "i386")
70
70
        target = os.path.join(
71
71
            mirror, "dists", options.suite, options.component,
72
 
            "source", "Sources.gz")
 
72
            "source", "Sources.xz")
73
73
    else:
74
74
        mirror = find_mirror(config, options.architecture)
75
75
        target = os.path.join(
76
76
            mirror, "dists", options.suite, options.component,
77
 
            "binary-%s" % options.architecture, "Packages.gz")
 
77
            "binary-%s" % options.architecture, "Packages.xz")
78
78
 
79
79
    print("Waiting for %s." % package, end="")
80
80
    sys.stdout.flush()
81
81
 
82
82
    first_time = True
83
83
    while subprocess.call(
84
 
            ["zgrep", "-q", package, target], preexec_fn=reset_sigpipe) != 0:
 
84
            ["xzgrep", "-q", package, target], preexec_fn=reset_sigpipe) != 0:
85
85
        if not first_time:
86
86
            print(".", end="")
87
87
            sys.stdout.flush()