Commit Graph

  • b0e4053bc9 make tests pass again by mocking ReloadConfiguration() Michael Vogt 2015-01-22 12:25:06 +01:00
  • a97b720c72 add Reposiotry:Details() Michael Vogt 2015-01-22 11:54:52 +01:00
  • 96a7a53287 * Improve ReloadConfiguration(). * Switch back to main rootfs's s-i config file after checking for updates. James Hunt 2015-01-22 09:50:29 +00:00
  • 66688ce8a0 * Call ReloadConfiguration(). James Hunt 2015-01-22 09:33:35 +00:00
  • 04a5af9e0f add snappy remove (using click as the worker for now) Michael Vogt 2015-01-22 09:23:26 +01:00
  • 00cb7f2292 only query for "app,framework" in GetUpdates for the ubuntu store Michael Vogt 2015-01-22 08:54:02 +01:00
  • 8ebfb602ac use append(foo, bar...) instead of silly loop Michael Vogt 2015-01-22 08:49:03 +01:00
  • 1e0f7b38fc add test for the case when no snapp is instaleld Michael Vogt 2015-01-22 08:39:04 +01:00
  • dd55d43305 fix GetUpdates when no parts are installed, improve test of GetUpdates by testing expected json plus mocking GetInstalledSnappNamesByType Michael Vogt 2015-01-22 08:31:48 +01:00
  • 85fd27348d add basic GetUpdates test Michael Vogt 2015-01-22 08:03:29 +01:00
  • 3c637877a9 add snappy list --updates Michael Vogt 2015-01-21 22:07:51 +01:00
  • e04ee35e79 Merging trunk Sergio Schvezov 2015-01-21 17:50:04 -03:00
  • 40f2c3decf Completing GetUpdates Sergio Schvezov 2015-01-21 17:28:07 -03:00
  • 9dd820813a * Updated tests to use new names. James Hunt 2015-01-21 19:55:06 +00:00
  • 1a20ca6b92 * Updated for new naming. James Hunt 2015-01-21 19:53:38 +00:00
  • 2d0c236904 * Add ReloadConfiguration() method. Not currently called! James Hunt 2015-01-21 19:51:58 +00:00
  • acf53cdb5f almost working update, json decode change needs work Michael Vogt 2015-01-21 20:39:01 +01:00
  • c6b82be908 Using convention const names Sergio Schvezov 2015-01-21 16:25:34 -03:00
  • 9f93821c54 Improvements to search Sergio Schvezov 2015-01-21 16:24:27 -03:00
  • f13e6c7d6b fix tests by small tweak to the PartitionInterface and the mocks Michael Vogt 2015-01-21 17:37:41 +01:00
  • 4c81a0cf40 * "go fmt". James Hunt 2015-01-21 16:30:11 +00:00
  • f4189e2958 * Updated dependencies. * partition.go: Use gopkg.in/yaml.v2 to read yaml. James Hunt 2015-01-21 16:29:36 +00:00
  • 313d4b7066 make snappy search really work Michael Vogt 2015-01-21 17:09:41 +01:00
  • 3905723e96 * Add BootLoaderType and constructor. * Implement NextBootIsOther(). * Updated HandleAssets() to use hardware.yaml. James Hunt 2015-01-21 16:02:46 +00:00
  • e5a1602d7c make snappy info work Michael Vogt 2015-01-21 16:34:13 +01:00
  • 5edd316728 * Ensure Uboot elements are strings. * ToggleRootFS(): Remove incorrect kernel+initrd install code for u-boot. * Call SyncBootFiles() before applying s-i update. James Hunt 2015-01-20 17:43:43 +00:00
  • 04e9dbf005 * Remove unused BOOTLOADER_TYPE_* consts. * HandleAssets(): install boot assets post-s-i unpack. * Implemented NewGrub() and NewUboot() constructors. * Simplified SyncBootFiles(). James Hunt 2015-01-20 17:00:39 +00:00
  • a19c4e63cb * Improve grub install detection. * Added SyncBootFiles() to sync kernel+initrd unconditionally prior to s-i unpack. * Updated boot partition label. James Hunt 2015-01-20 14:42:28 +00:00
  • d02f789fea * Added systemd snappy booted service (no packaging yet). James Hunt 2015-01-16 13:45:40 +00:00
  • 85c607fff7 refactor and improve tests for SystemImage Michael Vogt 2015-01-14 17:20:06 +01:00
  • aee01c2abf add repository search and mockServer Michael Vogt 2015-01-14 15:12:31 +01:00
  • 6994061864 add "snappy list/snappy list -a" Michael Vogt 2015-01-14 10:58:51 +01:00
  • 2881b9354a add support for IsActive for local parts Michael Vogt 2015-01-14 10:14:31 +01:00
  • 9232a54594 skip symlinks when read a local snapp dir Michael Vogt 2015-01-14 10:09:23 +01:00
  • c4cb5d53f9 add support for local snapp repos Michael Vogt 2015-01-14 10:01:26 +01:00
  • ee26e8460d snappy/systemimage.go: remove dead code Michael Vogt 2015-01-14 08:58:43 +01:00
  • a56672430c add support for local snapp parts Michael Vogt 2015-01-14 08:52:48 +01:00
  • 6fb053bfab simplify further Michael Vogt 2015-01-09 23:38:40 +01:00
  • 3247fd54d2 cleanup Michael Vogt 2015-01-09 22:56:43 +01:00
  • e1d470af3d make snappy update for for s-i Michael Vogt 2015-01-09 22:35:43 +01:00
  • 1efdf57616 add updateFailed watcher Michael Vogt 2015-01-09 18:15:50 +01:00
  • 28bd1d89de add DownloadUpdate Michael Vogt 2015-01-09 17:44:39 +01:00
  • 9301762a34 refactor and start with DownloadUpdate() support Michael Vogt 2015-01-09 17:25:15 +01:00
  • 7b8cf56aee add error checking for version compare Michael Vogt 2015-01-09 14:51:31 +01:00
  • 56103f9ce9 go fmt Michael Vogt 2015-01-09 14:11:51 +01:00
  • 8a33603df8 add version sorting Michael Vogt 2015-01-09 14:11:41 +01:00
  • f224137e64 fixes in sort, more tests and go fmt Michael Vogt 2015-01-09 14:01:59 +01:00
  • 4e3961c514 add VersionCompare with epoche and debian-revision support Michael Vogt 2015-01-09 11:50:27 +01:00
  • 3ad78f43df snappy/systemimage_test.go: add fixme Michael Vogt 2015-01-09 08:49:20 +01:00
  • d8416428d3 cleanup test and use proper SetUp/TearDown and a single test for each thing we test Michael Vogt 2015-01-09 08:36:26 +01:00
  • 2d2a765047 * Simplify u-boot ToggleRootFS by making modifyNameValueFile() append non-existing lines. James Hunt 2015-01-08 17:46:54 +00:00
  • 15a5699224 fix race in checkForUpdate() by starting a updateAvailableStatusWatcher early Michael Vogt 2015-01-08 14:29:33 +01:00
  • 10f8bbf1ef fix race in checkForUpdate() Michael Vogt 2015-01-08 14:08:59 +01:00
  • e7b22b5ae6 make tests run again and make them work too Michael Vogt 2015-01-08 13:49:31 +01:00
  • ec7357502f add search Michael Vogt 2015-01-08 11:51:09 +01:00
  • 2fd5fd20f9 convert helpers_test.go to gocheck Michael Vogt 2015-01-08 11:28:51 +01:00
  • d4b0793998 cleanup and use implement SystemImagePart.Hash Michael Vogt 2015-01-08 11:24:12 +01:00
  • bb152e3397 use gocheck in the systemimage_test.go, implement SystemImageRepository.Get{Installed,Updates} Michael Vogt 2015-01-08 11:05:05 +01:00
  • d71dfa7d1d * Typo. James Hunt 2015-01-07 19:48:51 +00:00
  • 60feba7f39 * Updated dependencies. James Hunt 2015-01-07 19:46:39 +00:00
  • 6a5d7a1e80 * 'go fmt'. James Hunt 2015-01-07 19:43:18 +00:00
  • ac9c21b7aa * Comments. James Hunt 2015-01-07 19:42:10 +00:00
  • d0be077500 * Correct grub-editenv usage. James Hunt 2015-01-07 16:39:53 +00:00
  • 33e9ae25ea * Added internal "booted" command that will be called on successful boot to mark current rootfs as usable. James Hunt 2015-01-07 16:13:15 +00:00
  • 614b096c65 go fmt Michael Vogt 2015-01-07 11:52:01 +01:00
  • 2a04ffc712 support arguments as well Michael Vogt 2015-01-07 11:33:23 +01:00
  • 2491c07672 initial version of the dbus s-i mock with some generic DbusService code that should go into go-dbus Michael Vogt 2015-01-07 11:04:35 +01:00
  • 893d235f72 * Set "snappy_mode" boot variable for grub+u-boot. James Hunt 2015-01-07 10:01:14 +00:00
  • c427c7d306 * Comments. James Hunt 2015-01-06 16:41:22 +00:00
  • 1b165cd29e * Added a few abbreviated command aliases. James Hunt 2015-01-06 15:28:50 +00:00
  • 4057848dba * Added missing "install" command. James Hunt 2015-01-06 13:37:13 +00:00
  • e11abcccdb * Replaced custom command-line handling with github.com/jessevdk/go-flags. James Hunt 2015-01-06 13:35:22 +00:00
  • 7ee2e322bd * Added https://launchpad.net/godeps dependency-tracking file. James Hunt 2015-01-06 13:25:57 +00:00
  • 57ec7d5bec * Rename 'versions' command to 'list'. James Hunt 2015-01-06 09:51:22 +00:00
  • 16c0c99858 * 'go fmt' fixes. James Hunt 2015-01-06 09:42:40 +00:00
  • 7ac7794af7 * Removed Bootloader.GetCurrentBootRootLabel() as this is handled via BlockDevice. James Hunt 2015-01-06 09:39:27 +00:00
  • 4951a54652 * Record next boot device for grub. * Implement GetNextBootRootLabel() for grub. James Hunt 2015-01-06 09:32:26 +00:00
  • 6737cf0ba3 add Part and Repository interfaces Michael Vogt 2015-01-05 23:03:34 +01:00
  • eb0f9c15a8 * More consts. James Hunt 2015-01-05 19:23:37 +00:00
  • 68a518d465 * Added u-boot env-var handling. James Hunt 2015-01-05 17:41:25 +00:00
  • d77c5ebdb5 * Added Grub env-var handling. James Hunt 2015-01-05 13:51:48 +00:00
  • 85cff559cb * Be explicit about Click and SystemImage inheriting from DataSource. * snappy/command_versions.go: Call new NewSystemImage() constructor function. * snappy/systemimage.go: - Added NewSystemImage() constructor to handle D-Bus setup. - Setup D-Bus connection to system-image server and retrieve information on update status and available updates. James Hunt 2014-12-28 19:30:01 +00:00
  • 9814c846c9 * Add skeletal handling for single rootfs system. James Hunt 2014-12-21 19:24:56 +00:00
  • ddf5d2f36f * Pass Partition to DetermineBootLoader() rather than ToggleRootFS() so the Bootloader object can grab a reference at instantiation time. * Rename GrubBootLoader to Grub. * Rename UbootBootLoader to Uboot. * Fixes to allow the u-boot rootfs toggle to work. James Hunt 2014-12-20 22:53:27 +00:00
  • 63614a4cce * Ignore bootloader update request if system does not have dual root partitions. James Hunt 2014-12-20 20:19:48 +00:00
  • 1c745da01f * Create snappy uenv config if it's missing. James Hunt 2014-12-20 19:25:38 +00:00
  • 41939194ac * Doco. * implemented ToggleRootFS() for u-boot. James Hunt 2014-12-19 23:26:44 +00:00
  • 5636652454 * Fix calls to FileExists() - the code can now toggle the rootfs when using grub! James Hunt 2014-12-19 22:10:23 +00:00
  • 72b1b26fa6 * Introduce Bootloader type. James Hunt 2014-12-19 21:10:08 +00:00
  • 56c6cab71e * Improved fix to only pass args to dispatcher functions. James Hunt 2014-12-19 12:50:22 +00:00
  • 6e300c063f snappy/command_search.go: remove tablewriter and use tabwriter instead Michael Vogt 2014-12-18 15:33:31 +01:00
  • b899562b0b snappy/dispatcher.go: pass only the arguments to the dispatcher function not the command itself Michael Vogt 2014-12-18 15:32:59 +01:00
  • 90558dcfc1 audit_snap->auditSnap, extract_snap_yaml->extractYamlFromSnap Michael Vogt 2014-12-18 15:08:55 +01:00
  • 2fabf764fe next iteration on refactor, split commands.go up Michael Vogt 2014-12-18 15:06:50 +01:00
  • 36289b276d Adding README.md Sergio Schvezov 2014-12-18 08:56:15 -03:00
  • 8373bea1d6 Reordering sources and running "goimports -w ." Sergio Schvezov 2014-12-18 08:43:43 -03:00
  • e72f30bd2b * Comments. James Hunt 2014-12-18 10:44:12 +00:00
  • 87e7f3a570 * Added in crude privileged check (only for "versions" atm). James Hunt 2014-12-18 10:17:55 +00:00
  • 1039768786 * Move dispatcher logic to dispatcher.go for clarity. James Hunt 2014-12-17 23:12:28 +00:00
  • bc0d145227 * Rework build, search and install to dispatcher model. James Hunt 2014-12-17 23:05:12 +00:00