Merge lp:~sergiusens/snappy/YouShallNotPass into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged |
|---|---|
| Approved by: | John Lenton on 2015-06-04 |
| Approved revision: | 486 |
| Merged at revision: | 484 |
| Proposed branch: | lp:~sergiusens/snappy/YouShallNotPass |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
130 lines (+63/-0) 5 files modified
helpers/helpers.go (+14/-0) helpers/helpers_test.go (+12/-0) snappy/errors.go (+12/-0) snappy/snapp.go (+5/-0) snappy/snapp_test.go (+20/-0) |
| To merge this branch: | bzr merge lp:~sergiusens/snappy/YouShallNotPass |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John Lenton | 2015-06-04 | Approve on 2015-06-04 | |
|
Review via email:
|
|||
Commit Message
Don't allow installation of packages with unsupported architectures
Description of the Change
I hope but don't think this will be able to be directly backported :-)
- 485. By Sergio Schvezov on 2015-06-04
-
comma space, always comma space
- 486. By Sergio Schvezov on 2015-06-04
-
Adding a test to test the error
| Sergio Schvezov (sergiusens) wrote : | # |
On Thu, Jun 04, 2015 at 09:26:57PM -0000, Michael Vogt wrote:
>
>
> Diff comments:
>
> > === modified file 'helpers/
> > --- helpers/helpers.go 2015-06-03 14:01:51 +0000
> > +++ helpers/helpers.go 2015-06-04 13:35:20 +0000
> > @@ -197,6 +197,20 @@
> > }
> > }
> >
> > +// IsSupportedArch
> > +// list of architectures.
> > +func IsSupportedArch
>
> I am a bit late to the party I guess so I shouldn't complain ;) I'm a bit uncertainy if helpers/ is the best place for this. Helpers a bit of a catch-all-bag but so far mostly for stuff that is pretty generic and could be re-used in very different projects than snappy. Not sure how well this fits. But then UbuntuArchitect
The only reason I put this code in helpers is because UbuntuArchitecture
was already here; it also made backporting easier as there ir a major
refactor in clickInstall and SnapParts going on.


Nice! One minuscule nit.