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
1=== modified file 'DistUpgrade/DistUpgradeController.py'
2--- DistUpgrade/DistUpgradeController.py 2013-04-18 17:42:14 +0000
3+++ DistUpgrade/DistUpgradeController.py 2013-05-07 15:51:24 +0000
4@@ -1762,6 +1762,10 @@
5 if self.aptcdrom:
6 self.aptcdrom.comment_out_cdrom_entry()
7
8+ # remove upgrade-available notice
9+ if os.path.exists("/var/lib/ubuntu-release-upgrader/release-upgrade-available"):
10+ os.unlink("/var/lib/ubuntu-release-upgrader/release-upgrade-available")
11+
12 # done, ask for reboot
13 self._view.setStep(STEP_REBOOT)
14 self._view.updateStatus(_("System upgrade is complete."))
15
16=== modified file 'debian/changelog'
17--- debian/changelog 2013-04-30 18:17:22 +0000
18+++ debian/changelog 2013-05-07 15:51:24 +0000
19@@ -1,3 +1,15 @@
20+ubuntu-release-upgrader (1:0.195) UNRELEASED; urgency=low
21+
22+ * debian/release-upgrade-motd: LP: #1173209
23+ - recheck release upgrade once-a-day, even if stamp file is
24+ already populated
25+ - this partially fixes the sticky "upgrade available" message,
26+ after successfully upgrading, even if the stamp is not removed
27+ * DistUpgrade/DistUpgradeController.py: LP: #1173209
28+ - remove the upgrade-available flag, on upgrade completion
29+
30+ -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 07 May 2013 10:37:12 -0500
31+
32 ubuntu-release-upgrader (1:0.194) saucy; urgency=low
33
34 * support raring->saucy release upgrades harder
35
36=== modified file 'debian/release-upgrade-motd'
37--- debian/release-upgrade-motd 2012-06-06 21:23:35 +0000
38+++ debian/release-upgrade-motd 2013-05-07 15:51:24 +0000
39@@ -21,18 +21,18 @@
40
41
42 stamp=/var/lib/ubuntu-release-upgrader/release-upgrade-available
43-if [ -s "$stamp" ]; then
44- # Stamp exists and is populated, so display
45- cat "$stamp"
46- echo
47-elif [ -f "$stamp" ]; then
48- # Stamp exists, but is empty, see if it's expired
49+if [ -f "$stamp" ]; then
50+ # Stamp exists, see if it's expired
51 now=$(date +%s)
52 lastrun=$(stat -c %Y "$stamp") 2>/dev/null || lastrun=0
53 expiration=$(expr $lastrun + 86400)
54 if [ $now -ge $expiration ]; then
55- # But is older than 1 day old, so update in the background
56+ # Older than 1 day old, so update in the background
57 /usr/lib/ubuntu-release-upgrader/check-new-release -q > "$stamp" &
58+ elif [ -s "$stamp" ]; then
59+ # Less than 1 day old, and non-empty, so display now
60+ cat "$stamp"
61+ echo
62 fi
63 else
64 # No cache at all, so update in the background

Subscribers

People subscribed via source and target branches