~andreserl/maas/update-maas-images-v3

« back to all changes in this revision

Viewing changes to bin/maas-cloudimg2ephemeral

  • Committer: Scott Moser
  • Date: 2016-05-17 15:05:20 UTC
  • mfrom: (299.1.1 trunk.lp1582410)
  • Revision ID: smoser@ubuntu.com-20160517150520-whobczhyetrku1r6
precise: must run dist-upgrade if adding a ppa

When a ppa is added (only done so in precise), then dist-upgrade
must be run.  That is to ensure that packages in the ppa that are
newer than those in the image will be installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
            { error "failed writing to $IMAGES_PPA_FILE"; return 1; }
226
226
        printf "%s\n" "$IMAGES_PPA_APT_KEY" | apt-key add - ||
227
227
            { error "apt-key add failed!"; return 1; }
 
228
        debug 1 "addition of PPA turns dist-upgrade on"
 
229
        dist_upgrade=1
228
230
    else
229
231
        log_change false "$change"
230
232
        debug 1 "not adding images ppa to release=$release"