Commit Graph

3450 Commits

Author SHA1 Message Date
Colin Walters
702c38739e core: Drop some dead code from packfile writing, expose GInputStream API too
We never actually dropped into the bits to write metadata as packfiles,
because such a thing doesn't exist.

Also add a GInputStream-based API for writing packfiles.
2011-11-30 22:15:05 -05:00
Colin Walters
556662b24c core: Extract stage_and_checksum() internal API
This will be used for staging both metadata and data consistently
before actually importing it.
2011-11-30 21:20:15 -05:00
Colin Walters
99bf19314e core: Add ot_gfile_create_tmp() to utils, use it 2011-11-30 20:32:06 -05:00
Colin Walters
247e027125 repo: Don't call g_hash_table_destroy on a NULL hash 2011-11-30 20:23:54 -05:00
Colin Walters
e8865af09e core: Split pull functionality into separate ostree-pull binary
This is to avoid everything depending on libsoup.
2011-11-30 09:21:14 -05:00
Colin Walters
3ac841d931 core: Make libostree.so an installed library
This will make it easier to have multiple binaries.
2011-11-29 18:25:07 -05:00
Colin Walters
654a2c295d ostbuild: Relicense under LGPLv2+, tweak artifact generation 2011-11-29 16:15:04 -05:00
Colin Walters
84562f161f core: Use ot_clear_checksum() 2011-11-29 14:06:54 -05:00
Colin Walters
70574c3c06 otutil: New utility functions 2011-11-29 13:42:05 -05:00
Colin Walters
b07b2f6473 core: Remove an unused variable 2011-11-28 20:45:27 -05:00
Colin Walters
cb5b3b15f5 core: checksum builtin: Actually quit main loop on error too 2011-11-28 19:34:54 -05:00
Colin Walters
7e32bc6cd7 core: Make commit always operate on directory contents, not file list
This simplifies things significantly, at some cost in flexibility.
We'll later add the ability to e.g. filter out files by regular
expression.
2011-11-28 12:57:25 -05:00
Colin Walters
b296dc4efc core: Some tweaks to ls output 2011-11-28 10:17:49 -05:00
Colin Walters
3f0866dc79 gnomeos: Switch to using pseudo for commits
This is noticeably faster.

One side effect here is that xattrs are empty, which is actually
a good thing.
2011-11-27 20:43:44 -05:00
Colin Walters
89735a233b gnomeos: Pull in pseudo into -dev image
As a potential 'fakeroot' implementation.
2011-11-27 20:34:30 -05:00
Colin Walters
86adf002ff ostbuild: Don't run fakeroot if we are root
For efficiency reasons, as well as a quick shortcut to avoid pulling
fakeroot into the gnomeos yocto layer.
2011-11-27 20:31:23 -05:00
Colin Walters
2f1490f766 core: Fix a compiler warning 2011-11-27 20:15:07 -05:00
Colin Walters
87547827c8 core: Add ls builtin 2011-11-27 20:10:48 -05:00
Colin Walters
48507624c2 core: Don't default to "master" for show, there is no default branch anymore 2011-11-27 18:46:11 -05:00
Colin Walters
56a9a68993 configure: Actually disable soup-gnome if not found 2011-11-27 18:08:18 -05:00
Colin Walters
1a5994a45c gnomeos: include -dev packages too in -dev image
Otherwise we don't get headers and stuff...
2011-11-27 18:03:22 -05:00
Colin Walters
b0b0ffcd61 core: Add asynchronous checksum API, use it in checksum builtin 2011-11-27 17:21:04 -05:00
Colin Walters
8af4a62665 gnomeos: Add basic device files in /dev
So we're more usable in a chroot for compiling software.
2011-11-27 13:12:22 -05:00
Colin Walters
ab3efe446d gnomeos: Fetch ostree from file:/// URI
This means anyone not using /src/ostree for the checkout will have
to change it, but it's way less annoying for me not to have to push
changes to git.
2011-11-27 13:08:32 -05:00
Colin Walters
ea858ab558 ostbuild: Split nice/logger program out, merge make/makeinstall into one executable 2011-11-27 13:07:33 -05:00
Colin Walters
6cdea44c4b daemon: Allow running as non-root in test mode 2011-11-27 11:34:03 -05:00
Colin Walters
9c4fc94266 gnomeos: Prefix branch names with -yocto to clarify their origin
Also add git to the dev image.
2011-11-25 12:02:03 -05:00
Colin Walters
7d0a8bab6c gnomeos: Add ncurses to base 2011-11-25 12:01:38 -05:00
Colin Walters
fd58e16a8d core: Minor code cleanup 2011-11-25 12:01:05 -05:00
Colin Walters
fa06a4dcea ostbuild: Rename osbuild to ostbuild, clean up old C files 2011-11-25 12:00:16 -05:00
Colin Walters
3c025e526f core: Ad ot_clear_gvariant(), use it
This saves us a conditional.
2011-11-22 10:20:10 -05:00
Colin Walters
43ae898f65 gnomeos: Make python actually work, install bash by default 2011-11-22 10:03:12 -05:00
Colin Walters
2bee1bbbdf core: A bit more daemon work 2011-11-22 10:02:49 -05:00
Colin Walters
aa69aae94e core: Move merge dirs code into gio utils 2011-11-21 15:04:07 -05:00
Colin Walters
c117aadc95 core: Stub out a system daemon 2011-11-20 20:55:24 -05:00
Colin Walters
ff77a1bd7d gnomeos: Check out both -base and -dev roots
This makes it easier to boot into either.
2011-11-20 20:50:14 -05:00
Colin Walters
fb98d0bf24 ostree-init: Also trim trailing newline from arguments
Otherwise the parsed argument is corrupted.
2011-11-20 20:49:45 -05:00
Colin Walters
bfd47eb93a TODO: Update 2011-11-20 20:49:15 -05:00
Colin Walters
571787b14e gnomeos: Add -x86 tag to builds
Since later we'll want -x86_64 too.
2011-11-19 14:03:18 -05:00
Colin Walters
1dbf134946 core: Rework argument parsing
Default to /sysroot/ostree/repo when run as root.  Also better
handle the requires-repo flag.
2011-11-19 14:02:21 -05:00
Colin Walters
79eb682cda gnomeos: local-clone into built image
This way we have the whole history in the image, and we can start
to demo things like switching roots, pulling etc.
2011-11-19 10:52:17 -05:00
Colin Walters
dce29a984a core: Ensure data is properly initialized
Avoids a crash if we bail early.
2011-11-19 10:45:53 -05:00
Colin Walters
a042731673 core: Add local-clone builtin
This is useful for converting between e.g. archive and non-archive
repositories.
2011-11-18 18:50:53 -05:00
Colin Walters
b7a45b5815 core: Also chown() after unpacking objects 2011-11-18 18:50:29 -05:00
Colin Walters
7d63ad5ae8 core: Switch to GFile* for unpacking and storing objects 2011-11-18 16:14:01 -05:00
Colin Walters
c66474750b core: Expose API to get repository tmpdir 2011-11-18 16:01:28 -05:00
Colin Walters
f6ec479f17 core: Rework object iteration API to be GFile based and pass more data
It makes more sense to have e.g. the details of .packfile naming
inside the repo, and pass the expected checksum and type.
2011-11-18 15:21:32 -05:00
Colin Walters
8621eb85b1 core: Skip an unnecessary unlink() call 2011-11-18 09:41:36 -05:00
Colin Walters
7276e2df43 core: Have single "overwrite" flag instead of ignore_exists+force pair
The default is always ignore_exists.  Also port the internals here
to use more GIO code, and stop using *at syscall variants since they're
only useful if used 100%.
2011-11-18 09:37:25 -05:00
Colin Walters
860c3cf502 core: Convert public get_object_path() to GFile* 2011-11-18 09:04:25 -05:00