Merge lp:~xubuntu-dev/ubuntu-cdimage/bionic_image_size into lp:ubuntu-cdimage

Proposed by Sean Davis
Status: Merged
Merged at revision: 1786
Proposed branch: lp:~xubuntu-dev/ubuntu-cdimage/bionic_image_size
Merge into: lp:ubuntu-cdimage
Diff against target: 35 lines (+5/-6)
1 file modified
lib/cdimage/tree.py (+5/-6)
To merge this branch: bzr merge lp:~xubuntu-dev/ubuntu-cdimage/bionic_image_size
Reviewer Review Type Date Requested Status
Steve Langasek Needs Fixing
Review via email: mp+363298@code.launchpad.net

Commit message

Adjust Xubuntu image sizes, Xenial requires larger than a 1GB USB stick while Bionic and newer have a 2GB limit

Description of the change

Adjust Xubuntu image sizes:
- Xenial requires larger than a 1GB USB stick
- Bionic and newer have a 2GB limit

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

Would you care to fix up the issues identified inline?

review: Needs Fixing
1783. By Sean Davis

Fix xenial check for xubuntu and ubuntu-gnome

1784. By Sean Davis

Remove xenial logic since its handled in the previous elif statement

Revision history for this message
Sean Davis (bluesabre) wrote :

Hi Steve, thank you for reviewing.

I was copying the logic employed by ubuntu-gnome. I've adjusted this and simplified the logic since the xenial case is handled for ubuntu-gnome and xubuntu in the previous elif statement.

Revision history for this message
Sean Davis (bluesabre) wrote :

Just following up here. Let me know if there are any other changes needed.

Revision history for this message
Steve Langasek (vorlon) :
review: Needs Fixing
1785. By Sean Davis

Increase xubuntu xenial limit to 2GB to match warning

Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks for the review. I think it would have used the 1.46 GB limit that was in place which already didn't fit the 1 GB limit the code had before. I've increased the limit to 2 GB just to make it more sane.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/cdimage/tree.py'
2--- lib/cdimage/tree.py 2019-02-19 10:21:08 +0000
3+++ lib/cdimage/tree.py 2019-02-24 11:19:01 +0000
4@@ -970,7 +970,8 @@
5 elif (self.project in ("ubuntu-gnome",
6 "kubuntu",
7 "ubuntu-mate",
8- "ubuntu-budgie") and series >= "xenial"):
9+ "ubuntu-budgie",
10+ "xubuntu") and series >= "xenial"):
11 sentences.append(
12 "Warning: This image is oversized (which is a bug) and will "
13 "not fit onto a 2GB USB stick.")
14@@ -979,8 +980,7 @@
15 "drive, or a virtual machine.")
16 elif (self.project in usb_projects or
17 (self.project == "xubuntu" and series >= "raring") or
18- (self.project == "ubuntu-gnome" and series >= "saucy" and
19- series << "xenial")):
20+ (self.project == "ubuntu-gnome" and series >= "saucy")):
21 sentences.append(
22 "Warning: This image is oversized (which is a bug) and will "
23 "not fit onto a 1GB USB stick.")
24@@ -1893,9 +1893,8 @@
25 # and suppress the warnings
26 return 2 * 1000 * 1000 * 1000
27 elif self.project == "xubuntu" and self.config["DIST"] >= "xenial":
28- # http://irclogs.ubuntu.com/2016/03/09/
29- # %23ubuntu-release.html#t12:11
30- return 1460000000
31+ # https://irclogs.ubuntu.com/2019/02/17/%23ubuntu-release.html#t03:04
32+ return 2 * 1000 * 1000 * 1000
33 elif self.project == "xubuntu" and self.config["DIST"] >= "raring":
34 # http://irclogs.ubuntu.com/2013/02/11/%23xubuntu-devel.html#t21:48
35 return 1024 * 1024 * 1024

Subscribers

People subscribed via source and target branches