Commit Graph

  • 0b6a4f05d6 * Further updates based on review comments: - privileged.go is now priv.go. - Changed Privileged() => Mutex(). James Hunt 2015-03-16 17:43:49 +00:00
  • 15b3e8269d * Sync with lp:snappy. James Hunt 2015-03-16 15:58:09 +00:00
  • ef21e772ae * New API resulting from review comments. * Now using the juju logger. * Added unit tests. James Hunt 2015-03-16 15:21:24 +00:00
  • 06298bfb31 write DEBIAN/hashes.yaml Michael Vogt 2015-03-16 15:51:50 +01:00
  • e1f9efe1bf address review comments from Sergio (thanks!) Michael Vogt 2015-03-16 14:31:32 +01:00
  • 73383bf04c fix tests Michael Vogt 2015-03-16 14:20:26 +01:00
  • 13a9db3015 * Sync with lp:snappy. James Hunt 2015-03-16 09:24:46 +00:00
  • 53f398d67a more cleanup, rename ClickDeb.Pack() -> ClickDeb.Build() Michael Vogt 2015-03-16 09:37:02 +01:00
  • a544bdd732 cleanup and better tests for tarGzCreate() Michael Vogt 2015-03-16 09:25:31 +01:00
  • 2433e06ef6 use store/id in oem package.yaml Michael Vogt 2015-03-13 14:31:49 +01:00
  • e34d7c48ae avoid ChDir() for easier code Michael Vogt 2015-03-13 13:40:18 +01:00
  • 05bb1b1ca8 native pack Michael Vogt 2015-03-13 13:24:14 +01:00
  • 3c2c2168ad Making adjustments to make the components easier to build on and test: Services interface and Ports as a type instead of anonymous an struct. by sergiusens approved by mvo Sergio Schvezov 2015-03-13 05:11:37 -04:00
  • 036323e545 dependencies.tsv: updated for the new github.com/blakesmith/ar dependency Michael Vogt 2015-03-13 10:04:17 +01:00
  • 47283f41c8 move deb handling into "clickdeb" package (not deb as its really specialized for the click specific deb format) Michael Vogt 2015-03-13 10:02:59 +01:00
  • d3dc5ee6ca changes for s-i 3.0 Michael Vogt 2015-03-13 09:00:43 +01:00
  • 214a54a98b Work around a crash in the gccgo implementation. by mvo approved by sergiusens Michael Vogt 2015-03-12 16:11:41 -04:00
  • 3e74ac7634 uses only exported types in template.Execute() Michael Vogt 2015-03-12 19:51:46 +01:00
  • 6fed0343cf send store-id (if there is one) Michael Vogt 2015-03-12 16:19:33 +01:00
  • 936f4f858c Reverting the smaller interfaces and only introducing the Services interface Sergio Schvezov 2015-03-12 12:09:37 -03:00
  • d79b4dfe2c add bzip2,xz Michael Vogt 2015-03-12 14:18:27 +01:00
  • 9eac1db287 add test for deb content extraction Michael Vogt 2015-03-12 12:11:49 +01:00
  • 01ae4f4e24 add d.controlContent() test Michael Vogt 2015-03-12 11:49:14 +01:00
  • f15ed18d30 use "dpkg-deb -Zgzip" for now as we do not have xz support yet Michael Vogt 2015-03-12 11:39:41 +01:00
  • 5a0fa3be18 merged lp:snappy Michael Vogt 2015-03-12 11:32:25 +01:00
  • 4bd3cd8652 move test into deb_test.go Michael Vogt 2015-03-12 11:26:32 +01:00
  • eeac60788f Use native Build() in the tests and fix missing "type" field in compat click manifest. by mvo approved by sergiusens Michael Vogt 2015-03-12 06:21:37 -04:00
  • 692eae8d70 move deb handling into deb.go and make it a type Michael Vogt 2015-03-12 11:16:08 +01:00
  • 0691f3ea06 add missing "Type" to click manifest Michael Vogt 2015-03-12 08:12:04 +01:00
  • 00a9547553 use native build in the tests and remove ubuntu-core-snappy (python snappy) dependency Michael Vogt 2015-03-12 08:04:36 +01:00
  • 2135721348 Splitting up interfaces to create smaller testable units Sergio Schvezov 2015-03-11 16:58:52 -03:00
  • f8485e4f33 Add "Icon()" interface to the snap Part. by mvo approved by sergiusens Michael Vogt 2015-03-11 13:32:07 -04:00
  • f46de7cc9f update FIXMEs Michael Vogt 2015-03-11 17:39:49 +01:00
  • 451e9d76f0 use native reading for the click manifest too Michael Vogt 2015-03-11 17:35:06 +01:00
  • f301534b52 add basic verify function Michael Vogt 2015-03-11 14:32:02 +01:00
  • 2db522abe6 use native unpack for the data Michael Vogt 2015-03-11 14:11:49 +01:00
  • 070ccd54e4 refactor UnpackTar to take a io.Reader Michael Vogt 2015-03-11 13:45:29 +01:00
  • 71486e4c38 snappy/build.go: add Maintainer to compat manifest.json Michael Vogt 2015-03-11 10:14:30 +01:00
  • 4301f09cc1 cmd/snappy-go/cmd_build.go: run click-reviewers-tools on generated snap Michael Vogt 2015-03-11 09:56:33 +01:00
  • e2a3e0100f support "binaries/exec:" key in package.yaml Michael Vogt 2015-03-11 09:36:40 +01:00
  • 32a2da4a05 Run snappy config with apparmor confinement. by mvo approved by sergiusens Michael Vogt 2015-03-10 10:11:47 -04:00
  • 1b5ad89090 Sans click snappy build (dependant on dpkg still) by mvo approved by sergiusens,mvo Michael Vogt 2015-03-10 09:55:52 -04:00
  • a4d41c65bc add fakeroot dependency Michael Vogt 2015-03-10 14:52:52 +01:00
  • c2a76333fe merged lp:snappy and resolved conflicts Michael Vogt 2015-03-10 14:42:03 +01:00
  • 6c3e9a6427 add FIXME Michael Vogt 2015-03-10 14:35:47 +01:00
  • 86d0de05b7 merged lp:snappy Michael Vogt 2015-03-10 14:33:26 +01:00
  • 8135277b5f go fmt Michael Vogt 2015-03-10 14:32:29 +01:00
  • 70531db574 merged lp:snappy and resovled conflicts and ensure t.Execute() works Michael Vogt 2015-03-10 14:31:42 +01:00
  • 8fc1164bd3 merged lp:snappy Michael Vogt 2015-03-10 14:23:31 +01:00
  • 1763b4270b Native systemd hook implementation. by mvo approved by sergiusens Michael Vogt 2015-03-10 09:11:41 -04:00
  • ffd7015efa merged lp:snappy and resolved conflicts Michael Vogt 2015-03-10 13:57:04 +01:00
  • 9e6a552cf1 Fixes FTBFS in the current buildd environment by mvo approved by sergiusens Michael Vogt 2015-03-10 08:13:09 -04:00
  • 048a938098 Fix typo in README.md by timchen119 approved by mvo Jian-Ding Chen (timchen119) 2015-03-10 08:11:40 -04:00
  • 87931f2138 move changing global uboot vars into setup/teardown too Michael Vogt 2015-03-10 10:54:11 +01:00
  • 7257991335 move changing global grub vars into SetUpTest/TearDownTest (thanks Sergio) Michael Vogt 2015-03-10 10:49:06 +01:00
  • af8696f814 Fix typo in README.md Jian-Ding Chen (timchen119) 2015-03-10 17:35:44 +08:00
  • f4b8ac6951 refactor to move common code into unsetActiveClick() Michael Vogt 2015-03-10 10:04:09 +01:00
  • af29dff5b9 refactor to remove duplicated code Michael Vogt 2015-03-10 09:39:55 +01:00
  • 416b1879c5 snappy/click_test.go: look for the right services file Michael Vogt 2015-03-10 08:41:06 +01:00
  • c5fd041c7e address review comments from Sergio (thanks!) Michael Vogt 2015-03-10 08:38:12 +01:00
  • d18f7d7757 snappy/click.go: handle internal hooks in removeClickHooks() as well Michael Vogt 2015-03-10 08:35:35 +01:00
  • 3702b19c95 merged lp:snappy and resolved conflicts Michael Vogt 2015-03-10 08:07:29 +01:00
  • ed2ed02973 rename architectureForDeb -> debArchitecture and ArchitectureAsListOrString -> DeprecatedArchitecture Michael Vogt 2015-03-10 08:04:24 +01:00
  • aae4d1de85 Fix typo in README.md by timchen119 approved by mvo Jian-Ding Chen (timchen119) 2015-03-10 03:01:53 -04:00
  • 3a8a77b6c4 * fixed typo in README.md Jian-Ding Chen (timchen119) 2015-03-10 14:15:13 +08:00
  • 7279225967 add compat with snappy python Michael Vogt 2015-03-09 16:16:02 +01:00
  • 26b9a4d9be remove no longer needed snappy-systemd dependency Michael Vogt 2015-03-09 15:36:13 +01:00
  • 593a1a765c add Icon() to the Part interface Michael Vogt 2015-03-09 15:18:30 +01:00
  • 364397752d go fmt Michael Vogt 2015-03-09 15:02:24 +01:00
  • b737e21d7a Expanding Readme with information about how to contribute and perform testing. by mvo approved by sergiusens Michael Vogt 2015-03-09 10:02:14 -04:00
  • ac3cbe59d0 use current dir when no argument for build is given Michael Vogt 2015-03-09 15:01:58 +01:00
  • 0847f2bdfe do not write ports: {} Michael Vogt 2015-03-09 14:31:53 +01:00
  • 2f578b9057 add info about Testing and Contributing Michael Vogt 2015-03-09 12:31:52 +01:00
  • ab13d1d3fe make store tests more robust Michael Vogt 2015-03-09 11:45:16 +01:00
  • 5b06af1d0d fix multiple architectures parsing Michael Vogt 2015-03-09 11:32:47 +01:00
  • 4ace9f127e snappy/parts.go: do not fail if MetaRepository.Details() encounters a network error (e.g. no network at all) Michael Vogt 2015-03-09 08:40:44 +01:00
  • 18fe8640a4 refactor common code into mockGrubFile() Michael Vogt 2015-03-09 08:32:35 +01:00
  • f12c5032a7 partition/bootloader_grub_test.go: change grub-install/update-grub too to ensure we do not fail when a test env does not have grub installed Michael Vogt 2015-03-09 08:25:45 +01:00
  • 139afcfd16 * Review changes: - privileged.go: - Moved Locking and Privilege code out of helpers. - Added non-blocking option for flock (caught by tests). - privileged_tests.go: Added tests for ErrNotLocked and ErrAlreadyLocked. James Hunt 2015-03-06 18:36:24 +00:00
  • 78d05adf7a * Merge lp:snappy. James Hunt 2015-03-06 14:44:34 +00:00
  • d4b9535dda * Drop StartPrivileged() and StopPrivileged() in favour of a new Privileged() object and a Stop() method. James Hunt 2015-03-06 14:44:18 +00:00
  • 2363be254d Remove short versions of "update" ("up") and "install" ("in") by jamesodhunt approved by mvo James Hunt 2015-03-06 07:11:42 -05:00
  • e8235150d6 bugfixes Michael Vogt 2015-03-06 13:02:16 +01:00
  • 0812db4496 implement systemctl calls Michael Vogt 2015-03-06 12:55:32 +01:00
  • 9c5ef09cf7 generate/remove systemd files Michael Vogt 2015-03-06 12:33:55 +01:00
  • 8a1025570e * 'go fmt'. James Hunt 2015-03-06 11:08:59 +00:00
  • dff6d857f7 * Sync with lp:snappy. James Hunt 2015-03-06 11:08:48 +00:00
  • 4c8f8d9393 * Add basic logging functionality: - Introduce a customer global logger such that all log.* messages are logged to syslog. - Modified all calls to panic() to first write to the logger. - Changed error handling for critical system commands to ensure the errors are logged first. James Hunt 2015-03-06 11:05:39 +00:00
  • 61ab491db9 * Remove short versions of "update" ("up") and "install" ("in") commands. Both these operations are privileged and modify the system state, so should not have short names (as this increases the likelihood of them being run inadvertently). James Hunt 2015-03-06 09:40:25 +00:00
  • b95c72f3c8 * Updated based on review comments. James Hunt 2015-03-06 09:24:02 +00:00
  • b5e936a002 merged lp:snappy, resolved conflicts, updated code and tests Michael Vogt 2015-03-06 10:14:39 +01:00
  • 2f4163c8a1 Fix ftbfs when using packaged golang-pb-dev. by mvo approved by sergiusens Michael Vogt 2015-03-05 15:21:38 -05:00
  • 25219f3499 Native implementation to expose binaries to user. by mvo approved by sergiusens Michael Vogt 2015-03-05 15:11:41 -05:00
  • 52976437c1 * helpers/helpers.go: - StopPrivileged(): Call isRoot(). James Hunt 2015-03-05 17:22:11 +00:00
  • c73c81f59e * helpers/helpers_test.go: Add an assert. James Hunt 2015-03-05 16:55:52 +00:00
  • ff04b201bb * helpers/helpers.go: - Added new Errors for Lock() and Unlock(). - Re-added Flock() call to Unlock(). James Hunt 2015-03-05 16:12:53 +00:00
  • 3b17ac8697 * Comments to keep golint happy. James Hunt 2015-03-05 15:58:35 +00:00
  • 7d577e4438 * 'go fmt'. James Hunt 2015-03-05 15:51:24 +00:00
  • e67c132d8c * Sync with lp:snappy. James Hunt 2015-03-05 15:50:41 +00:00
  • 12ab783fb8 * helpers/helpers.go: - Make lockfileName a function for easier testing. - NewFileLock: Fixed bug identified by tests where path argument was being ignored. * helpers/helpers_test.go: Added TestLocking() and TestPrivileged(). James Hunt 2015-03-05 15:28:55 +00:00