diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-09 10:34:29 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-09 10:34:29 -0800 |
commit | eda28eadc0e429150a6575f4de99ea6ea1101000 (patch) | |
tree | 232d08d086cfcde66d8c6441e55b6d9bca425718 /scripts/install/install-image-existing | |
parent | 0dbc66ed17d3a18f540d24e3e143089a7dc26f1e (diff) | |
parent | 2dab8bb6de2faefd3a9289647a150d04116d4500 (diff) | |
download | vyatta-cfg-system-eda28eadc0e429150a6575f4de99ea6ea1101000.tar.gz vyatta-cfg-system-eda28eadc0e429150a6575f4de99ea6ea1101000.zip |
Merge branch 'larkspur' of suva.vyatta.com:/git/vyatta-cfg-system into larkspur
Diffstat (limited to 'scripts/install/install-image-existing')
-rwxr-xr-x | scripts/install/install-image-existing | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index b566c1e9..86a27f3e 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -32,8 +32,8 @@ if [ -z "$CURVER" ]; then fi # get new version string. this is from the squashfs image. -NEWVER=$(grep '^Version ' ${CD_SQUASH_ROOT}${vyatta_sysconfdir}/version \ - | tr -s ' ' | cut -d ' ' -f 3) +NEWVER=`dpkg -l --root=${CD_SQUASH_ROOT} | grep "^.. vyatta-version " | awk '{print $3}'` + if [ -z "$NEWVER" ]; then failure_exit 'Cannot find new release version.' fi |