Merge lp:~sergiusens/snappy/rollYourOwnCorePersonal into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~sergiusens/snappy/rollYourOwnCorePersonal |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
220 lines (+50/-34) 6 files modified
cmd/snappy/cmd_info.go (+2/-11) release/release.go (+19/-10) release/release_test.go (+10/-10) snappy/snapp_test.go (+1/-1) snappy/systemimage.go (+3/-2) snappy/systemimage_test.go (+15/-0) |
| To merge this branch: | bzr merge lp:~sergiusens/snappy/rollYourOwnCorePersonal |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Federico Gimenez (community) | continuous-integration | Approve on 2015-08-19 | |
| Michael Vogt | 2015-07-10 | Needs Information on 2015-07-13 | |
| Snappy Tarmac | continuous-integration | Pending | |
|
Review via email:
|
|||
Commit Message
Snappy to expose the core package as personal or core depending on the release
Description of the Change
This will affect snappy config (and maybe oem packages that define configs) so releases for snaps may have to be split up after this
| Sergio Schvezov (sergiusens) wrote : | # |
On Mon, Jul 13, 2015 at 07:04:25AM -0000, Michael Vogt wrote:
> Review: Needs Information
>
> Thanks, this looks good! I have some question inline, probably mostly my own ignorance.
>
> Diff comments:
>
> > === modified file 'cmd/snappy/
> > --- cmd/snappy/
> > +++ cmd/snappy/
> > @@ -90,22 +91,12 @@
> > return nil
> > }
> >
> > -func ubuntuCoreChannel() string {
> > - parts, err := snappy.
> > - if len(parts) == 1 && err == nil {
> > - return parts[0].Channel()
> > - }
> > -
> > - return "unknown"
> > -}
> > -
> > func info() error {
> > - release := ubuntuCoreChannel()
> > frameworks, _ := snappy.
> > apps, _ := snappy.
> >
> > // TRANSLATORS: the %s release string
> > - fmt.Printf(
> > + fmt.Printf(
>
> This is nice (i.e. that all the code above gets killed :)
>
\o/
> > // TRANSLATORS: the %s an architecture string
> > fmt.Printf(
> > // TRANSLATORS: the %s is a comma separated list of framework names
> >
> > === modified file 'release/
> > --- release/release.go 2015-05-15 13:33:27 +0000
> > +++ release/release.go 2015-07-10 11:47:46 +0000
> > @@ -51,9 +51,18 @@
> > return rel.String()
> > }
> >
> > +// Flavor returns the flavor for the release.
> > +func Flavor() string {
> > + return rel.flavor
> > +}
> > +
> > // Override sets up the release using a Release
> > -func Override(r Release) {
> > - rel = r
> > +func Override(flavor, series, channel string) {
>
> What the purpose of this function? AFAICT its only used in systemimage_
>
You forget about u-d-f and obtaining the first oem snap that has all the
info we need ;-)
> > + rel = Release{
> > + flavor: flavor,
> > + series: series,
> > + channel: channel,
> > + }
> > }
> >
> > // Setup is used to initialiaze the release information for the system
> >
> > === modified file 'snappy/
> > --- snappy/
> > +++ snappy/
> > @@ -97,7 +98,7 @@
> >
> > // Name returns the name
> > func (s *SystemImagePart) Name() string {
> > - return systemImagePartName
> > + return fmt.Sprintf(
>
> Yay for this! Makes me wonder if we should move the "ubuntu-" string into release as well so that systemimage.go is a bit more agonstic about (but really minor minor).
>
Maybe so, but we also need to be backwards compatible here; if we can,
I'm all for it!
> > }
> >
> > // Origin returns the origin ("ubuntu")
>
>
> --
> https:/
> You are the owner of lp:~sergiusens/snappy/rollYourOwnCorePersonal.
| Federico Gimenez (fgimenez) wrote : | # |
PASSED: Continuous integration, rev:570
http://
Executed test runs:
Click here to trigger a rebuild:
http://
Unmerged revisions
- 570. By Sergio Schvezov on 2015-07-10
-
Snappy to expose the core package as personal or core depending on the release


Thanks, this looks good! I have some question inline, probably mostly my own ignorance.