Commit Graph

719 Commits (874fce2b775960afaf6e8e56f12ad5ff4cfad58b)
 

Author SHA1 Message Date
Alexander Larsson f16cc44a30 builder: Use SoupRequest to simplify download helpers
Also, this allows us to support data: uris, etc
2015-12-09 12:55:10 +01:00
Alexander Larsson 3fdfef7e40 builder: Allow optionally specifying remote file sources 2015-12-09 12:01:55 +01:00
Alexander Larsson e39192b3d6 builder: Break out download_uri helper function in SourceFile 2015-12-09 11:42:04 +01:00
Alexander Larsson 3fb4226c81 builder: Make the builder manifest objects serializable to json 2015-12-09 10:33:54 +01:00
Alexander Larsson f7b20fad85 common: Make XdgAppDir soup session initilization threadsafe 2015-12-08 15:28:11 +01:00
Alexander Larsson 237fd57cd0 builder: Allow git uris to be relative to the base directory
This allows you to use ".git" as the git uri, thus building from the
current source directory.
2015-12-08 14:34:34 +01:00
Alexander Larsson 4177f358cb common: Make it explicit that XdgAppError are portal errors 2015-12-08 12:16:38 +01:00
Alexander Larsson a28ced36c7 lib: Add xdg_app_installation_load_app_overrides() 2015-12-08 11:48:22 +01:00
Alexander Larsson 8d576298ca lib: Minor indentation cleanups 2015-12-08 11:02:32 +01:00
Alexander Larsson a62f64d265 lib: Add xdg_app_remote_ref_fetch_metadata_sync helper
This does direct soup access on the repo. Not ideal, but good for now.
2015-12-08 11:01:13 +01:00
Alexander Larsson ef93bd8d15 lib: Fix declaration of xdg_app_installed_ref_load_metadata
We changed this to not be const
2015-12-07 16:36:08 +01:00
Alexander Larsson 0fe5f6552a lib: Add XdgAppDir to RemoteRef private 2015-12-07 16:35:53 +01:00
Alexander Larsson d987501e02 lib: Always load installed ref metadata each time
This is needed in case it changes over time.
2015-12-07 16:31:01 +01:00
Alexander Larsson 188bb00b1b lib: xdg_app_remote_fetch_ref_sync
For now this downloads the summary file each time.
2015-12-07 16:17:06 +01:00
Alexander Larsson 6558c812af lib: Add some more debug spew to test-lib 2015-12-07 16:16:43 +01:00
Alexander Larsson eca699ca5a lib: Rename xdg_app_remote_list_refs to xdg_app_remote_list_refs_sync 2015-12-07 16:16:02 +01:00
Alexander Larsson a8a7b28ce9 lib: Add remote_name to XdgAppRemoteRef 2015-12-07 16:14:52 +01:00
Alexander Larsson 5b1931dc8d lib: Add xdg_app_installed_ref_launch() 2015-12-07 13:36:39 +01:00
Alexander Larsson 000c59f60e xdg_app_run_app: Handle error == NULL 2015-12-07 13:34:50 +01:00
Alexander Larsson 8e26dec0d9 helper: Mount dconf run dir writable, as dconf needs this. 2015-12-07 13:34:11 +01:00
Alexander Larsson 67e52e8278 common: Clean up xdg_app_run_app()
This breaks things out into helper functions to make things easier
to read.
2015-12-07 13:04:45 +01:00
Alexander Larsson 03ae229751 Move most of builtins-run to xdg_app_run_app helper
This is in preparation for letting the library start apps.
2015-12-07 12:27:53 +01:00
Alexander Larsson d503c5a15d Remove unused variable 2015-12-07 12:27:29 +01:00
Alexander Larsson b761aa05a7 common: Move typedef to separate header to avoid circular deps 2015-12-07 12:26:44 +01:00
Alexander Larsson ad7310f246 XdgAppDeploy: Fix wrong types in finalizer 2015-12-07 12:25:48 +01:00
Alexander Larsson 6c999147c4 Add XdgAppRemoteRef do docs 2015-12-04 20:22:57 +01:00
Alexander Larsson 09f7842e78 Merge pull request #91 from ebassi/api-reference
Generate the API reference for libxdg-app
2015-12-04 20:17:12 +01:00
Emmanuele Bassi f23090a615 Generate the API reference for libxdg-app
We use the good old gtk-doc.
2015-12-04 15:00:35 +00:00
Alexander Larsson a4df4ff811 lib: Add XdgAppRemoteRef subclass
This doesn't do anything yet, but its a place to hang remote-specific
ops off.
2015-12-04 15:35:13 +01:00
Alexander Larsson 1647c85d6f helper: Allow exec on the tmpfs.
This should be safe, you could always copy it to your writable
directory and exectute from there instead. There should be no way
to get increased privileges from a simple exec anyway.
2015-12-04 12:19:41 +01:00
Alexander Larsson 5fd830d3b0 lib: Make getters for XdgAppRemote return copies of strings for options
This makes it possible to handle the case when these options change
over time.
2015-12-04 11:46:32 +01:00
Alexander Larsson 1ba476bcbe Merge pull request #90 from ebassi/introspection
Introspection
2015-12-04 11:42:47 +01:00
Alexander Larsson ad7b379398 Add no-enumerate flag to remote and set if for bundle origin remotes 2015-12-04 11:40:51 +01:00
Emmanuele Bassi c09375c855 Annotate transfer rules for ambiguous return values
This silences all the warnings from the introspection scanner.
2015-12-04 10:17:39 +00:00
Alexander Larsson 704300e1b4 Add xdg_app_dir_fetch_remote_title and remote old custom summary fetcher 2015-12-04 11:09:00 +01:00
Emmanuele Bassi 52ba736518 Add introspection support to libxdg-app
We may want to use it from non-C languages.
2015-12-04 09:55:40 +00:00
Alexander Larsson 2f6fc54897 lib: Use the new remote helpers 2015-12-04 10:49:16 +01:00
Alexander Larsson 4cdec26264 list/ls-remotes: Use the new remote helpers 2015-12-04 10:48:26 +01:00
Alexander Larsson 5bc44ea125 XdgAppDir: Add some helpers for handling remotes 2015-12-04 10:48:05 +01:00
Emmanuele Bassi 92885b9ce2 Add introspection check 2015-12-04 09:36:30 +00:00
Alexander Larsson ab7699bb04 builder: Prune old branches when updating mirror 2015-12-04 08:51:14 +01:00
Alexander Larsson 374e7d1166 builder: Be a bit more verbose when pulling VCS 2015-12-04 08:51:08 +01:00
Alexander Larsson 707bc35c59 Merge pull request #89 from ebassi/builddir
Builddir != srcdir fixes
2015-12-04 08:36:33 +01:00
Emmanuele Bassi 19c9a25be6 build: Switch to olddir after autoreconf
Otherwise this won't work:

  $ mkdir _build && cd _build
  $ ../autogen.sh

As `autoreconf` won't find configure.ac.
2015-12-04 01:14:53 +00:00
Emmanuele Bassi 82fa0659f9 build: Fix include path for builddir != srcdir
We need to add $(top_builddir)/lib to the inclusion path, otherwise the
build will fail.

This has broken gnome-continuous builds of xdg-app.
2015-12-04 01:13:45 +00:00
Alexander Larsson 132d1186d9 Initial version of libxdg-app
This is a highlevel library for working with xdg-app without using
the commandline interface. The primary usecase for this is for
creating a graphical frontend for app installation/update.
2015-12-03 22:41:16 +01:00
Alexander Larsson f2c9663169 ls-remote: Remove unnecessary code
Summary refs never have a remote prefix
2015-12-03 22:40:55 +01:00
Alexander Larsson e76da99cdc builder: Merge spawn helpers to single base helper 2015-12-03 13:29:08 +01:00
Alexander Larsson 9396419b66 Merge pull request #88 from murraycu/master
Docs: Fix some tiny typos
2015-12-02 15:57:09 +01:00
Alexander Larsson 3ce0c6f7f9 document portal: Add AddNamed method for host-side use
This is needed for the "save as" file selector portal
2015-12-02 15:55:41 +01:00