Commit Graph

1428 Commits

Author SHA1 Message Date
Alexander Larsson
d959ed016c common: Add xdg_app_list_extensions util 2016-01-20 14:00:49 +01:00
Alexander Larsson
622adf88d0 builder: Put debuginfo in the right place for runtimes 2016-01-20 14:00:49 +01:00
Alexander Larsson
df44834b0c Revert "lib: Allow passing NULL for remote name in update_appstream"
This reverts commit 9a185947a3.

This was problematic wrt how partial errors are reported
2016-01-19 22:06:06 +01:00
Alexander Larsson
c6df1665a6 appstream: Don't try to remove old appstream if it doesn't exist 2016-01-19 22:05:16 +01:00
Alexander Larsson
9a185947a3 lib: Allow passing NULL for remote name in update_appstream 2016-01-19 21:59:43 +01:00
Alexander Larsson
0b8515ac07 update-appstream: Don't fail badly if remote has not appstream branch 2016-01-19 21:58:44 +01:00
Alexander Larsson
388d3ce500 lib: update_appstream - work around main context issue 2016-01-19 18:57:19 +01:00
Alexander Larsson
6189fd3f7a build-finish: Fix exports
This was reading an unintialized variable
2016-01-19 16:53:11 +01:00
Alexander Larsson
1d89c2fcab lib: Add xdg_app_remote_get_appstream_dir 2016-01-19 15:18:44 +01:00
Alexander Larsson
2bede34952 lib: Add getter for installed size on InstalledRef 2016-01-19 15:05:06 +01:00
Alexander Larsson
1a4f257cbd builder: Remove leftover debug spew 2016-01-19 13:08:15 +01:00
Alexander Larsson
2f3e790651 builder: Fix error with va_start use 2016-01-19 12:38:16 +01:00
Alexander Larsson
2abe3ff911 Fix possible read of uninitialized variable 2016-01-19 12:38:03 +01:00
Alexander Larsson
071561637a Remove unused variables 2016-01-19 12:37:51 +01:00
Alexander Larsson
2c08cdc4e0 override: Fix warning 2016-01-19 12:32:04 +01:00
Alexander Larsson
9e8ca412f5 build-update-repo: Add --prune and --prune-depth options 2016-01-19 12:26:45 +01:00
Alexander Larsson
24ec8445a3 override: Fix error if override file doesn't already exist 2016-01-19 12:09:54 +01:00
Alexander Larsson
8b3cc77955 builder: Handle modules with invalid refname characters in the cache 2016-01-19 11:57:37 +01:00
Alexander Larsson
6e204a4d2e Add support to gpg sign summaries and appstream 2016-01-18 21:36:57 +01:00
Alexander Larsson
de7e19e40f The plural of appdata is appstream 2016-01-18 21:06:42 +01:00
Alexander Larsson
496cbac3db cache: Don't fail to create cache if parent dir is not created 2016-01-18 17:17:04 +01:00
Alexander Larsson
87ad85116e builder: Fix random crash due to uninitialized memory 2016-01-18 16:14:42 +01:00
Alexander Larsson
e91a4c79e0 Builder: Support commiting a platform 2016-01-18 15:22:56 +01:00
Alexander Larsson
3341fb08ad builder: Allow building runtime sdks (based on existing sdk)
This includes a few different changes:
 * Add build-runtime boolean property
 * Rename "app-id" property to "id"
 * Add metadata property to use a custom base metadata file
 * Default to writable-sdk to TRUE for runtimes
 * Default prefix to /usr for runtimes
 * Put manifest in usr for runtimes
 * Pick up debuginfo from usr for runtimes
 * Make build-finish work on runtimes, but only export appdata
2016-01-18 11:43:02 +01:00
Alexander Larsson
701d800059 builder: Correctly handling non-existing app dir when applying cache 2016-01-18 11:36:24 +01:00
Alexander Larsson
efad98815a build-export: Add --include option 2016-01-18 11:22:25 +01:00
Alexander Larsson
f2853a460b cache: Remove target directory before checking out cache
This will be empty anyway, and if its there the checkout fails.
2016-01-17 21:23:03 +01:00
Alexander Larsson
3848ae54a5 Merge pull request #99 from ssssam/builder-manpage-fix
Builder manpage fix
2016-01-17 19:56:09 +01:00
Alexander Larsson
cb571dab52 Merge pull request #98 from ssssam/dont-delete-appdir
builder: Don't delete the APPDIR directory
2016-01-17 19:54:51 +01:00
Sam Thursfield
5210387fcf docs: Add missing full stops in xdg-app-builder manpage 2016-01-17 18:33:26 +00:00
Sam Thursfield
d5c176f440 builder: Don't delete the APPDIR directory
A new user might think that APPDIR is the location of the app to be
built, and run something like `xdg-app-builder . ./manifest`. This
could silently the user's entire project that they are trying to
package, which is not acceptable at all! Even if you think it is their
fault for not reading the manual first!

This commit means that APPDIR is no longer deleted. Instead,
xdg-app-builder checks whether it is empty and, if it is not, it asks
the user to delete the contents and then rerun it.

This means you now have to do `rm -Rf APPDIR; xdg-app-builder APPDIR
MANIFEST` when developing your manifest, but I think that's better than
having a build tool that can optionally delete your whole project.
2016-01-17 18:16:05 +00:00
Alexander Larsson
22b30f7074 lib: Add xdg_app_installation_update_appdata_sync 2016-01-15 16:15:25 +01:00
Alexander Larsson
d114069b8a XdgAppDir: Document some args to xdg_app_dir_fetch_sizes 2016-01-15 16:06:26 +01:00
Alexander Larsson
51e9fa2b8d build-update-repo: Add --appdata update option 2016-01-15 15:59:22 +01:00
Alexander Larsson
a1b5bb1507 xdg_app_installation_list_remote_refs_sync: Don't crash on weird refs 2016-01-15 14:53:34 +01:00
Alexander Larsson
cd2c5af974 build-repo-update: Update appdata branch using appdata-builder 2016-01-15 14:39:11 +01:00
Alexander Larsson
a79ea2e890 common: Add XdgAppTempDir which cleans up temporary directories 2016-01-15 12:04:46 +01:00
Alexander Larsson
cb971722fe Better handling of the title in the summary
Now we store the title in the repo config and re-apply it every time
we regenerate the summary.
2016-01-14 21:26:51 +01:00
Alexander Larsson
93e8d8bd78 builder: Add some spew when downloading files 2016-01-14 16:45:44 +01:00
Alexander Larsson
78601a42ce lib: xdg_app_installation_fetch_remote_size_sync 2016-01-14 16:45:44 +01:00
Alexander Larsson
839c5ca885 XdgAppDir: Add helper to fetch the size info for a commit 2016-01-14 16:45:28 +01:00
Alexander Larsson
f3bf30334c builder: Also apply cleanup to changes in usr 2016-01-14 11:16:17 +01:00
Alexander Larsson
7fb1309488 completion: Update to the new cli commands 2016-01-13 17:55:11 +01:00
Alexander Larsson
5a12157add remote-ls: Regularize --runtime and --app user 2016-01-13 17:21:08 +01:00
Alexander Larsson
025fa4e4d6 Merge list-apps and list-runtimes into single list command 2016-01-13 17:02:15 +01:00
Alexander Larsson
37c6485183 docs: Update for the new command names 2016-01-13 16:33:43 +01:00
Alexander Larsson
123626b36f xdg-app: Update the command names and make nicer usage output
All the *-remote commands are changed to remote-* and otherwise made
more regulare.

The usage output is split into titled subsections and has per-command
descriptions.
2016-01-13 16:09:30 +01:00
Alexander Larsson
f7a1fdaa99 xdg-app: Deprecate install/update/uninstall-app/runtime
We just have install/updata/uninstall and have --app and --runtime
options if you really want to specify the type. Otherwise we just
automatically chose the right thing.
2016-01-13 15:34:08 +01:00
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