Commit Graph

780 Commits (f8894af8d7d561098de439178a81cbe69e2cee57)
 

Author SHA1 Message Date
Alexander Larsson f8894af8d7 builder: Change the way the cache is indexed
Instead of a single ref we use one ref per stage (init, build module X,
cleanup, finish). This means we don't have to iterate in the cache
lookup, and it also means we get clean refs for each stage so one
can easily inspect the differences between the stages.
2016-01-13 09:50:15 +01:00
Alexander Larsson 46ef2824dd build-finish: Export appdata files 2016-01-12 16:33:20 +01:00
Alexander Larsson d43e797b4b builder: Add support for rename-appdata-file option 2016-01-12 16:30:20 +01:00
Alexander Larsson f56d6a7290 builder: Fix up cleanup matching 2016-01-12 16:06:53 +01:00
Alexander Larsson 0823d1960c install: Fix printing of NULL in already-installed error message 2016-01-12 15:13:02 +01:00
Alexander Larsson 55e934ee76 builder: Fix handling of builddir 2016-01-12 14:25:41 +01:00
Alexander Larsson 4c47951cbd builder: Add some more spew when exporting 2016-01-12 12:36:07 +01:00
Alexander Larsson a6eab3e732 builder: Don't break if ccache not enabled. 2016-01-12 12:32:44 +01:00
Alexander Larsson 689c36aa8f builder: Pass --body, --subject and --gpg-sign to build-export 2016-01-12 12:25:45 +01:00
Alexander Larsson f95cd2d029 builder: Add option to enable ccache use in build 2016-01-12 12:09:09 +01:00
Alexander Larsson a241610793 helper: Align help output 2016-01-12 11:21:14 +01:00
Alexander Larsson 59c8c49bdd builder: Run builds in /run/build/$modulename
This creates repeatable builds for anything that leaves the build
dir in the resulting files, such as debug info.
2016-01-12 11:05:37 +01:00
Alexander Larsson e1cb723c55 build: Add --bind-mount and --build-dir arguments 2016-01-12 10:42:04 +01:00
Alexander Larsson 5c578946bf helper: Allow specifying initial cwd 2016-01-12 10:39:03 +01:00
Alexander Larsson b60e81271e helper: Add missing arguments to usage output 2016-01-12 10:33:43 +01:00
Alexander Larsson 1934562ca2 run: Be more flexible with --runtime option, and add --runtime-version
This makes it easier to experiment with running an app with a
different runtime.
2016-01-12 09:57:20 +01:00
Alexander Larsson 5a905d913c helper: Print nicer error messages when user namespaces don't work. 2016-01-12 09:33:55 +01:00
Alexander Larsson 6701207ca7 build-finish: Don't leave empty directories in the exports dir 2016-01-12 09:22:52 +01:00
Alexander Larsson df75f881e7 export: Add docs for the new command line arguments 2016-01-12 09:14:12 +01:00
Alexander Larsson 13d07d6a6f builder: Add support for exporting with --repo=foo 2016-01-11 15:35:17 +01:00
Alexander Larsson e2b347ba76 run: Fix support for app extensions 2016-01-11 15:34:54 +01:00
Alexander Larsson 1fb39381b2 export: Allow custom source for "files" and "metadata" 2016-01-11 14:37:51 +01:00
Alexander Larsson 69d489bbef builder: Create metadata.debuginfo if debug info exists 2016-01-11 14:37:30 +01:00
Alexander Larsson 33f634ec67 export: Support --exclude 2016-01-11 13:57:59 +01:00
Alexander Larsson b4fbb84f0a common: Move path_match_prefix to common 2016-01-11 13:56:07 +01:00
Alexander Larsson fc5ded5b3c builder: Clean up how the commit filters work
Now we do the path filtering manually and just rewrite the info in the
filter.
2016-01-11 13:06:37 +01:00
Alexander Larsson d3e1ffb4f7 builder: Match debuginfo files against regular cleanup patterns
I.e. if /lib/foo is cleaned, also clean /lib/debug/lib/foo.debug
2016-01-11 11:41:50 +01:00
Alexander Larsson 1b2ed4fe09 builder: Pass down global cleanups via BuildContext 2016-01-11 11:40:46 +01:00
Alexander Larsson 5896b5ae08 builder: Pass down keep-build-dirs via BuildContext 2016-01-11 11:40:46 +01:00
Alexander Larsson 825611a758 builder: Break out helpers for path matching 2016-01-11 11:40:46 +01:00
Alexander Larsson 98a7d731ad builder: Add support for separating out debuginfo 2016-01-11 11:40:46 +01:00
Alexander Larsson 62b4ffaa72 builder: Use libelf to detect elf files
This additionally looks for already stripped files
2016-01-11 11:40:46 +01:00
Alexander Larsson 8be0031355 builder: Print all files removed by cleanup 2016-01-11 11:40:46 +01:00
Alexander Larsson e0af4441b3 build-export: FLAGS_GENERATE_SIZES when commiting 2015-12-23 14:58:28 +01:00
Alexander Larsson 9a41938a1b add-remote: Fix typo in no-enumerate handling 2015-12-21 22:43:08 +01:00
Alexander Larsson b510465e31 add-remote: Fix typo in prio handling 2015-12-21 22:40:31 +01:00
Alexander Larsson 116ae4f440 build-export: Look in the right keyfile group when exporting runtimes 2015-12-21 22:22:00 +01:00
Alexander Larsson 6ddee9905b build-export: Add --runtime commit support 2015-12-21 15:38:42 +01:00
Alexander Larsson 3adb84e368 build-finish: Add --no-exports 2015-12-21 15:37:26 +01:00
Alexander Larsson d99c4f6568 XdgAppDir: Remove leftover spew 2015-12-21 13:21:01 +01:00
Alexander Larsson 25ef0aaeae lib: Add xdg_app_installation_create_monitor
This just returns a new file monitor for the .changes file.
2015-12-21 11:13:00 +01:00
Alexander Larsson cd490d12a7 XdgAppDir: Touch .changes file each time something changes 2015-12-21 11:12:25 +01:00
Alexander Larsson 1264335458 builder: Add --disable-updates
Download sources, but never update existing sources (like git or bzr).
2015-12-21 10:39:23 +01:00
Alexander Larsson ea543c8f93 lib/app: Add support for repo priorities
New repos default to prio 1, bundle repos default to prio 0.
Listing repos returns in sorted order, with add order as secondary
sort key.
2015-12-21 10:28:15 +01:00
Alexander Larsson 22c1229ea8 install-bundle: Make the repo title shorter 2015-12-21 10:19:22 +01:00
Alexander Larsson 8a6cee3e46 list-remotes: Default to list only system remotes
This matches what install-* would use and also makes the bash completion
more sane.
2015-12-21 10:02:48 +01:00
Alexander Larsson cad13521fe apps: Make it more obvious that system repo is default
In the install-* and other commands where the dir is initialized from
the args, document that the system repo is the default in the usage
help.
2015-12-21 10:01:00 +01:00
Alexander Larsson 2f74965935 lib: Add cancellable to Installation constructors 2015-12-18 14:20:28 +01:00
Alexander Larsson fdc9b62988 lib: Always initialize the repo on Installation creation
This means we can fail if the repo doesn't exist yet and we have
no write rights.
2015-12-18 12:27:26 +01:00
Alexander Larsson feed03c284 lib: Expose latest_commit on installed app and let you use it
When updating you can pass flags to not deploy and to not pull.
2015-12-18 12:14:57 +01:00