~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/cddistupgrader

  • Committer: Michael Vogt
  • Date: 2011-03-09 14:55:26 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110309145526-nw50jprtrfnpgppr
* data/apt-cdrom-check, data/cddistupgrader:
  - support upgrades from filesystems without the "stable" and 
    "ubuntu" symlinks (like vfat)
* src/gdu.c:
  - check all removable devices for a upgrader
  - when detecting a upgrade CD skip the "Run package manager"
    step as its recommended to use the release upgrader

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
 
4
4
CDROM_MOUNT="$1"
5
 
UPGRADER_DIR="$CDROM_MOUNT/dists/stable/main/dist-upgrader/binary-all/"
 
5
 
 
6
for d in $CDROM_MOUNT/dists/*/main/dist-upgrader/binary-all/; do
 
7
    if [ -d "$d" ]; then
 
8
        UPGRADER_DIR="$d"
 
9
        break
 
10
    fi
 
11
done
6
12
 
7
13
TAR=$(basename "$UPGRADER_DIR"/*.tar.gz)
8
14
CODENAME=${TAR%.tar.gz}