Merge lp:~kirkland/ubuntu-release-upgrader/1173209 into lp:ubuntu-release-upgrader

Proposed by Dustin Kirkland 
Status: Merged
Merged at revision: 2630
Proposed branch: lp:~kirkland/ubuntu-release-upgrader/1173209
Merge into: lp:ubuntu-release-upgrader
Diff against target: 64 lines (+23/-7)
3 files modified
DistUpgrade/DistUpgradeController.py (+4/-0)
debian/changelog (+12/-0)
debian/release-upgrade-motd (+7/-7)
To merge this branch: bzr merge lp:~kirkland/ubuntu-release-upgrader/1173209
Reviewer Review Type Date Requested Status
Adam Conrad Pending
Review via email: mp+162798@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

I think there should also be a fix included in the Raring SRU of this that cleans up release-upgrade-available for people who have already upgraded to Raring.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Sure, Brian, I totally agree. I assumed this needed to be in trunk first, before we discussed Raring SRU. But yeah, I'm with you...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'DistUpgrade/DistUpgradeController.py'
--- DistUpgrade/DistUpgradeController.py 2013-04-18 17:42:14 +0000
+++ DistUpgrade/DistUpgradeController.py 2013-05-07 15:51:24 +0000
@@ -1762,6 +1762,10 @@
1762 if self.aptcdrom:1762 if self.aptcdrom:
1763 self.aptcdrom.comment_out_cdrom_entry()1763 self.aptcdrom.comment_out_cdrom_entry()
17641764
1765 # remove upgrade-available notice
1766 if os.path.exists("/var/lib/ubuntu-release-upgrader/release-upgrade-available"):
1767 os.unlink("/var/lib/ubuntu-release-upgrader/release-upgrade-available")
1768
1765 # done, ask for reboot1769 # done, ask for reboot
1766 self._view.setStep(STEP_REBOOT)1770 self._view.setStep(STEP_REBOOT)
1767 self._view.updateStatus(_("System upgrade is complete.")) 1771 self._view.updateStatus(_("System upgrade is complete."))
17681772
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-30 18:17:22 +0000
+++ debian/changelog 2013-05-07 15:51:24 +0000
@@ -1,3 +1,15 @@
1ubuntu-release-upgrader (1:0.195) UNRELEASED; urgency=low
2
3 * debian/release-upgrade-motd: LP: #1173209
4 - recheck release upgrade once-a-day, even if stamp file is
5 already populated
6 - this partially fixes the sticky "upgrade available" message,
7 after successfully upgrading, even if the stamp is not removed
8 * DistUpgrade/DistUpgradeController.py: LP: #1173209
9 - remove the upgrade-available flag, on upgrade completion
10
11 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 07 May 2013 10:37:12 -0500
12
1ubuntu-release-upgrader (1:0.194) saucy; urgency=low13ubuntu-release-upgrader (1:0.194) saucy; urgency=low
214
3 * support raring->saucy release upgrades harder15 * support raring->saucy release upgrades harder
416
=== modified file 'debian/release-upgrade-motd'
--- debian/release-upgrade-motd 2012-06-06 21:23:35 +0000
+++ debian/release-upgrade-motd 2013-05-07 15:51:24 +0000
@@ -21,18 +21,18 @@
2121
2222
23stamp=/var/lib/ubuntu-release-upgrader/release-upgrade-available23stamp=/var/lib/ubuntu-release-upgrader/release-upgrade-available
24if [ -s "$stamp" ]; then24if [ -f "$stamp" ]; then
25 # Stamp exists and is populated, so display25 # Stamp exists, see if it's expired
26 cat "$stamp"
27 echo
28elif [ -f "$stamp" ]; then
29 # Stamp exists, but is empty, see if it's expired
30 now=$(date +%s)26 now=$(date +%s)
31 lastrun=$(stat -c %Y "$stamp") 2>/dev/null || lastrun=027 lastrun=$(stat -c %Y "$stamp") 2>/dev/null || lastrun=0
32 expiration=$(expr $lastrun + 86400)28 expiration=$(expr $lastrun + 86400)
33 if [ $now -ge $expiration ]; then29 if [ $now -ge $expiration ]; then
34 # But is older than 1 day old, so update in the background30 # Older than 1 day old, so update in the background
35 /usr/lib/ubuntu-release-upgrader/check-new-release -q > "$stamp" &31 /usr/lib/ubuntu-release-upgrader/check-new-release -q > "$stamp" &
32 elif [ -s "$stamp" ]; then
33 # Less than 1 day old, and non-empty, so display now
34 cat "$stamp"
35 echo
36 fi36 fi
37else37else
38 # No cache at all, so update in the background38 # No cache at all, so update in the background

Subscribers

People subscribed via source and target branches