Commit Graph

  • 2a59fdec87 use ActiveSnapByName,FindSnapsByName names as suggested by Sergio Michael Vogt 2015-02-10 08:02:41 +01:00
  • 6d5fbd6afe Allow installing local snap package via snappy install ./foo.snap Michael Vogt 2015-02-10 02:02:13 -05:00
  • 520c42e85c use launchpad.net/gocheck instead of the gopkg.in/check.v1 branch Michael Vogt 2015-02-10 07:53:40 +01:00
  • 35455b35c4 merged trunk Michael Vogt 2015-02-10 07:52:55 +01:00
  • 3aba2ba17b * Added snappy.Part.NeedsReboot(), required for example to display correct reboot message when a newly-installed but not-yet-active system-image is available on the other rootfs. James Hunt 2015-02-09 13:02:24 -05:00
  • 188fbefdce * snappy/systemimage.go: Updates(): Handle no newer revision scenario. James Hunt 2015-02-09 12:02:18 -05:00
  • d2344695ed * Added snappy.Part.NeedsReboot(), required for example to display correct reboot message when a newly-installed but not-yet-active system-image is available on the other rootfs. James Hunt 2015-02-09 16:58:25 +00:00
  • 22d2435f19 * snappy/systemimage.go: Updates(): Handle no newer revision scenario. James Hunt 2015-02-09 11:31:14 +00:00
  • 78d53e14e4 Remove confusing hookDir argument for {install,remove,system}ClickHooks() and replace with clickSystemHooksDir variable that is mocked in the tests. This should make bugs like the one in r156 much less likely. Michael Vogt 2015-02-09 10:53:33 +01:00
  • b2c8e83872 remove silly bug Michael Vogt 2015-02-09 10:49:56 +01:00
  • b38a909c72 rename InstalledSnapByName -> ActivePartByName to clarify what the function is going Michael Vogt 2015-02-09 10:33:24 +01:00
  • 104be7ef82 minimal cli interface for "snappy set $pkgname active=$version" Michael Vogt 2015-02-09 10:09:51 +01:00
  • 43335bc631 Add new "SetActive()" API for parts and implement it for SnapPart and SystemImagePart Michael Vogt 2015-02-09 09:40:20 +01:00
  • f2099c2f07 add TODO Michael Vogt 2015-02-09 08:29:21 +01:00
  • 409dbd6fa4 Do not try to remove files that do not exist. Michael Vogt 2015-02-06 15:32:13 -05:00
  • 6465b3c86d * do not panic if dbus is not available, the reason is that the dbus daemon is not available in "SnapTestSuite" (only in SystemImageTestSuite) we don't really need it in these tests. * add a build dependency to "ubuntu-core-snappy" so that we can use "snappy build" during the tests to create test snaps. Michael Vogt 2015-02-06 09:32:54 -05:00
  • cf691b2149 snappy/click.go: only try to remove stuff that actually exists Michael Vogt 2015-02-06 15:20:01 +01:00
  • 613b78b94e * partition/partition.go: - Replace need for lsblk by using mount + udev-generated device information. * partition/partition_test.go: Update tests to mock mounts and /dev data rather than lsblk(8). James Hunt 2015-02-06 09:02:13 -05:00
  • 0592cf9aca do not panic if dbus/system-image is not available Michael Vogt 2015-02-06 14:39:24 +01:00
  • e9f64e53e9 debian/control: temporarly depend on ubuntu-core-snappy until we have a native snappy build (for the tests) Michael Vogt 2015-02-06 14:33:06 +01:00
  • b47ce6cc6b Packaging branch (bzr split deb style) Sergio Schvezov 2015-02-06 07:37:11 -05:00
  • d3cc528de2 Adding TODO note for pb.New64 swap to pb.New Sergio Schvezov 2015-02-06 09:53:42 -02:00
  • a3826e4f58 wrap-and-sort -a -t Sergio Schvezov 2015-02-06 09:52:27 -02:00
  • eafc18f11a Using snappy-go in the .service unit. Sergio Schvezov 2015-02-06 09:51:09 -02:00
  • ebbc6d2ae0 Merging mvo's awesome branch Sergio Schvezov 2015-02-06 09:49:37 -02:00
  • ef5aa84b15 releasing package ubuntu-snappy version 0.1-0ubuntu1 0.1-0ubuntu1 Michael Vogt 2015-02-06 11:29:53 +01:00
  • 75eab48f74 debian/control: add missing golang-go-dbus-dev dependency Michael Vogt 2015-02-06 11:28:21 +01:00
  • 339830abc5 add COPYING, remove debian/ubuntu-core-snappy.cache-lsblk.service, rename snappy->snappy-go and remove conflict Michael Vogt 2015-02-06 11:23:37 +01:00
  • f2d255b3c8 * More review changes. James Hunt 2015-02-06 09:26:36 +00:00
  • 5087274548 switching to launchpad.net/gocheck as it is packaged and describing how to keep the testing packages in sync in Readme.md while also updating dependencies.tsv Sergio Schvezov 2015-02-06 03:02:23 -05:00
  • 87d3c744fa add support for local snap installs Michael Vogt 2015-02-06 08:31:49 +01:00
  • 005a3fc91f Initial packaging Sergio Schvezov 2015-02-06 03:22:51 -02:00
  • 035a46378b Switching to launchpad.net/gocheck since it's packaged. Sergio Schvezov 2015-02-06 02:09:43 -02:00
  • a2b4cb4eaf Adding gocheck Sergio Schvezov 2015-02-05 20:35:23 -02:00
  • 367416054f Updating usage of godeps to take into testing dependencies. Sergio Schvezov 2015-02-05 20:34:27 -02:00
  • 073dd43f5b Fix the strange output the user tries to install something that does not exist and fixes snappy remove. Michael Vogt 2015-02-05 17:09:00 -05:00
  • 809262a51f This branch removes some dependencies.tsv that we do no longer need. Michael Vogt 2015-02-05 16:07:18 -05:00
  • 458b32a3aa Trivial branch that uses gocheck MkDir() instead of doing it by hand. Michael Vogt 2015-02-05 16:00:43 -05:00
  • cc7dd7c9f8 Making sure tarmac.sh gets the dependencies for the proposed merged branch and not the existing trunk with the addition of using godeps which required fixing dependencies.tsv Sergio Schvezov 2015-02-05 15:57:36 -05:00
  • 5f1e744958 Adding go's bin path the PATH Sergio Schvezov 2015-02-05 18:54:15 -02:00
  • f808837112 making sure tarmac.sh gets the dependencies for the proposed merged branch and not the existing trunk with the addition of using godeps Sergio Schvezov 2015-02-05 18:10:56 -02:00
  • fd5d580320 Adding a missing dependency on go-flags Sergio Schvezov 2015-02-05 18:10:38 -02:00
  • 32970372e2 Add native "snappy {install,remove}" support. Michael Vogt 2015-02-05 14:09:19 -05:00
  • 20072085de snappy/click_test.go: add fake icon to make "click build" happy Michael Vogt 2015-02-05 20:02:03 +01:00
  • bdf9388063 * partition.go: - Make diskDeviceDir a var to allow it to be mocked. - getMounts(): Make it read from a file name (to allow mocking). - getPartitions(): Make it read from a directory name (to allow mocking). - loadPartitionDetails(): Update regex to accommodate the tests. - bindmountRequiredFilesystems(): Subsumes requiredChrootMounts(), since it is the only consumer. * partition/partition_test.go: - makeMoujntsFileAndDevices(): Create fake /proc/self/mounts and /dev/disk/ data to allow getMounts() and getPartitions() to be tested via mocking. James Hunt 2015-02-05 17:42:22 +00:00
  • 713b343f5b fix silly bug in snappy remove that shows that duplicated code is bad code Michael Vogt 2015-02-05 17:40:12 +01:00
  • 0332505aae snappy/install.go: return a error if snappy install can not install anything Michael Vogt 2015-02-05 15:33:53 +01:00
  • 5e43cb4205 improve^Wcreate error handling for the store details query Michael Vogt 2015-02-05 15:24:36 +01:00
  • cbba77a038 use gocheck.MkDir() instead of doing it by hand Michael Vogt 2015-02-05 15:04:31 +01:00
  • 524f92420b naively -> natively (but I'm sure I can implement it natively as well) Michael Vogt 2015-02-05 14:39:21 +01:00
  • dae1b67914 snappy/helpers_test.go: use gocheck.MkDir() instead of rolling my own Michael Vogt 2015-02-05 14:37:38 +01:00
  • 37293ec3cc snappy/click.go: I learned that implicit return values is kind of bad so I avoid it Michael Vogt 2015-02-05 14:37:12 +01:00
  • a017b39099 add support for the /oem part Michael Vogt 2015-02-05 14:13:18 +01:00
  • b170826a87 Check for root for commands that require it Sergio Schvezov 2015-02-05 08:11:08 -05:00
  • 5eb3ec503a Checking for root on the commands that require it Sergio Schvezov 2015-02-05 10:56:25 -02:00
  • 7c36c99ca6 ensure the application data dir is created Michael Vogt 2015-02-05 13:50:19 +01:00
  • 9345554f4d * Updates based on review comments. James Hunt 2015-02-05 09:10:07 +00:00
  • 8914864e56 improve error reporting, fix bug with empty "Hook-Name" in click hooks, add test Michael Vogt 2015-02-05 09:50:34 +01:00
  • 64085972b5 test two hooks instead of one and test symlink targets are correct Michael Vogt 2015-02-05 09:17:09 +01:00
  • fbadd67d5e address review comments from Sergio (thanks!) Michael Vogt 2015-02-05 09:03:59 +01:00
  • 9d6dc2bb87 move exitCode extraction into helpers and add test Michael Vogt 2015-02-05 08:38:33 +01:00
  • c6d7003b5f move exitCode check for debsig-verify into its own function (thanks Sergio!) Michael Vogt 2015-02-05 08:27:41 +01:00
  • 7d95e66a43 merge trunk and resolve conflicts Michael Vogt 2015-02-05 08:17:22 +01:00
  • 5d7eca1c7a add godeps to README.md Michael Vogt 2015-02-05 08:09:07 +01:00
  • f7c2c3cefe update dependencies.tsv Michael Vogt 2015-02-05 08:05:42 +01:00
  • f54f82128e merged lp:snappy Michael Vogt 2015-02-05 08:05:10 +01:00
  • 12c4772333 use launchpad.net/goyaml for now as its packaged Michael Vogt 2015-02-05 08:04:33 +01:00
  • e32cff4211 * go fmt. James Hunt 2015-02-04 20:00:11 +00:00
  • 16c84d7075 * partition/partition_test.go: Update tests to mock mounts and /dev data rather than lsblk(8). James Hunt 2015-02-04 19:59:10 +00:00
  • c6d1b8a0be * Sync with lp:snappy. James Hunt 2015-02-04 19:14:34 +00:00
  • 8ba91b3b19 * Code style alterations. * RunWithOther(): Make calling on single-root systems an error. * otherPart(): Handle missing other s-i config file rather than erroring James Hunt 2015-02-04 13:01:36 -05:00
  • c4da06aceb Remove some unused code that implements parts of the new snap file format. As we are currently not using it I want to remove it. Michael Vogt 2015-02-04 12:31:25 -05:00
  • 73fc99ea2d * go fmt nonsense. James Hunt 2015-02-04 17:24:11 +00:00
  • 547c9d3779 Add helper to generate coverage html report. Michael Vogt 2015-02-04 12:02:40 -05:00
  • a5abae67b7 Spawn a private dbus daemon for the tests and remove the one created in .tarmac.sh Michael Vogt 2015-02-04 11:43:38 -05:00
  • c3438db540 I think we can get away with yaml.v1 and github.com/blakesmith/ar is no longer needed Michael Vogt 2015-02-04 16:49:04 +01:00
  • e9471c0689 * Review fixes with test updates. James Hunt 2015-02-04 14:04:30 +00:00
  • 9242186ad8 .tarmac.sh: remove .tarmac specific dbus launching Michael Vogt 2015-02-04 13:38:28 +01:00
  • e395bb3974 snappy/install.go: remove () around import Michael Vogt 2015-02-04 13:36:51 +01:00
  • e2541e2abe * partition/partition.go: - Replace need for lsblk by using mount + udev-generated device information. James Hunt 2015-02-04 11:54:49 +00:00
  • 3b73400d23 * Code style alterations. * RunWithOther(): Make calling on single-root systems an error. * otherPart(): Handle missing other s-i config file rather than erroring. James Hunt 2015-02-04 09:10:08 +00:00
  • 7d2fd18c69 create private dbus session Michael Vogt 2015-02-04 09:39:56 +01:00
  • efdc3ba791 remove unused command Michael Vogt 2015-02-04 09:09:28 +01:00
  • 3673e31d20 add simple helper to generate a code coverage html Michael Vogt 2015-02-04 09:07:43 +01:00
  • 0ce31a7b3f merged lp:snappy Michael Vogt 2015-02-04 08:38:45 +01:00
  • d4a2b6da2f remove unused code Michael Vogt 2015-02-04 08:38:32 +01:00
  • 86d188f0a1 merged lp:snappy Michael Vogt 2015-02-04 08:25:50 +01:00
  • 55e5640aaf refactor and move click bits into click.go Michael Vogt 2015-02-04 08:19:18 +01:00
  • 1b199797ce Simplify toggleBootloaderRootfs Michael Vogt 2015-02-03 14:01:27 -05:00
  • 06ef5ad189 fix race in sensibleWatch Michael Vogt 2015-02-03 19:07:21 +01:00
  • addf972292 add debsig-verify support Michael Vogt 2015-02-03 16:10:36 +01:00
  • 44cb703bc0 merged lp:snappy Michael Vogt 2015-02-03 14:12:49 +01:00
  • f04ed45afd merged lp:~sergiusens/snappy/tarmac Michael Vogt 2015-02-03 13:55:44 +01:00
  • 582f93e0c6 partition/partition.go: add missing error check Michael Vogt 2015-02-03 12:31:59 +01:00
  • 56d193175f simplify Partition.toggleBootloaderRootfs() Michael Vogt 2015-02-03 12:27:03 +01:00
  • 80b4fe5797 merged lp:~jamesodhunt/snappy/add-bindmounts-to-RunWithOther Michael Vogt 2015-02-03 12:19:01 +01:00
  • 2e2f3a3063 * partition/partition.go: - RunWithOther(): Bind-mount /proc, /sys and /dev if running with RW mount option (this simplifies the logic in toggleBootloaderRootfs()). - toggleBootloaderRootfs(): Use RunWithOther(). James Hunt 2015-02-03 10:43:02 +00:00
  • 9724fbd8f1 * Merge of lp:~mvo/snappy/si-progress. James Hunt 2015-02-03 09:59:50 +00:00
  • 5524e41c23 partition/partition.go: fix off-by-one error in undoMounts and add test Michael Vogt 2015-02-03 08:33:38 +01:00
  • af7f346352 Adding .tarmac.sh Sergio Schvezov 2015-02-02 22:51:33 -02:00