Snappy install fails cryptically if meta/readme.md doesn't have two lines
Bug #1400308 reported by
Robin Winslow
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Medium
|
Barry Warsaw |
Bug Description
The "meta/readme.md" file must have at least 2 lines of text.
If the file is empty, I get this error:
https:/
If the file only has one line, I get this error:
https:/
I also get that error if the readme has a blank line, or an "=" in it (perfectly valid markdown).
Related branches
lp:~snappy-dev/click/lp1400308
- Michael Vogt (community): Approve
- James Hunt: Pending requested
- Snappy Developers: Pending requested
-
Diff: 96 lines (+49/-6)2 files modifiedclick/build.py (+11/-2)
click/tests/test_build.py (+38/-4)
summary: |
- Snappy install cryptically if meta/readme.md doesn't have two lines + Snappy install fails cryptically if meta/readme.md doesn't have two + lines |
description: | updated |
Changed in snappy-ubuntu: | |
assignee: | nobody → Barry Warsaw (barry) |
importance: | Undecided → Medium |
status: | New → Triaged |
information type: | Embargoed → Public |
Changed in snappy-ubuntu: | |
status: | Fix Committed → Fix Released |
affects: | snappy-ubuntu → snappy |
To post a comment you must log in.
The 'empty readme.md' problem is because the resulting DEBIAN/control file has an empty Description: header, and this breaks dpkg (which does the underlying install). My thought is that `snappy build` should recognize this case and add a dummy header like "No description available".
Let's see what the second one is...