Matthias Clasen
2ca6f04265
ostbuild: make pull-components work
...
This builtin did not work for me. It did not initialize self.repo,
it used the nonexisting parse_active_branch function unconditionally,
and it did not actually find the list of components in contents.json.
This commit fixes all three of these issues.
2012-05-06 14:09:28 -04:00
Matthias Clasen
ae0b4ac628
Fix a typo
2012-05-06 13:57:09 -04:00
Matthias Clasen
07f67f3baf
ostree: avoid a segfault
...
When running ostree --repo=/ostree/repo without further arguments,
we end up calling strcmp with one argument being NULL.
2012-05-06 13:56:57 -04:00
Matthias Clasen
4a03176489
checkout: Deal gracefully with bad input
...
I had a /ostree/gnomeos-3.4-i686-devel directory, and this caused
ostree --repo=repo checkout gnomeos-3.5-i686-devel
to segfault.
2012-05-06 09:23:49 -04:00
Colin Walters
e4bc1494af
Release 2012.5
2012-05-05 16:03:53 -04:00
Colin Walters
c0e73c9fa0
core: pack: Fix calculation of size of pack objects
...
In archive mode, due to the previous change, we're now only
looking at metadata size, which is clearly wrong.
2012-05-05 16:00:53 -04:00
Colin Walters
a0ad28c16c
core: pull: Fix regression from memory leak fixes
2012-05-05 14:59:14 -04:00
Colin Walters
22ab052458
gnomeos: Delete some files that are now on the wiki
2012-05-05 12:58:56 -04:00
Colin Walters
15eef27b87
Release 2012.4
2012-05-05 11:53:05 -04:00
Colin Walters
38dd179017
core: Compile again on GLib 2.28
2012-05-05 11:45:19 -04:00
Colin Walters
471c04605e
Release 2012.3
2012-05-05 11:06:59 -04:00
Colin Walters
8206793a70
Revert "manifest local"
...
This reverts commit b052758652 .
Conflicts:
gnomeos/3.4/gnomeos-3.4-src.json
2012-05-05 10:42:56 -04:00
Colin Walters
ba1c75c61b
ostbuild: Drop use of link cache, it's gone now
2012-05-05 09:54:42 -04:00
Colin Walters
e213e2b5df
Clean up install scripts
2012-05-04 16:16:17 -04:00
Colin Walters
9aa9397e42
ostbuild: Create deploy-qemu subcommand
2012-05-04 16:16:16 -04:00
Colin Walters
5560c04770
gnomeos-setup: Initialize /var dynamically in ginitscripts
...
Rather than doing it in an installer.
2012-05-04 16:16:16 -04:00
Colin Walters
a2d937c2f0
triggers: Print name of each trigger we're running
2012-05-04 16:16:16 -04:00
Adrian Perez
5835bb72b4
ostbuild: Make --shell-on-failure flag to work
...
Fixes an issue which would cause ostbuild to fail to spawn the
debug shell and print a traceback instead.
2012-05-04 16:16:16 -04:00
Colin Walters
0597a3f71c
ostbuild: More work on deploy commands
2012-05-04 16:16:16 -04:00
Colin Walters
3a365521a8
ostbuild: Use --from-file for buildroot compose for easier debugging
2012-05-04 16:16:16 -04:00
Colin Walters
8785fefda8
ostbuild: Rename shadow-repo-init -> init
2012-05-04 16:16:16 -04:00
Colin Walters
44bb3aaa54
qemu-pull: Update to use pull-local
2012-05-04 16:16:16 -04:00
Colin Walters
851a9c2ce9
ostbuild: Checksum full component metadata for --skip-built
...
If we're using --skip-built, we really do want to rebuild if anything
changed (like the build dependency, configure arguments etc.)
2012-05-04 16:16:16 -04:00
Colin Walters
29b230107e
ostbuild: Break out git-mirror from resolve
...
Other bits
2012-05-04 16:16:16 -04:00
Colin Walters
986cd2172b
ostbuild: Use expanduser
2012-05-04 16:16:16 -04:00
Colin Walters
938f4eaf44
ostbuild: Lots more
2012-05-04 16:16:16 -04:00
Colin Walters
b845e0a2bb
ostbuild: Resolve takes --manifest arg
2012-05-04 16:16:16 -04:00
Colin Walters
a6a8e00edf
ostbuild: Add tree-to-bin and bin-to-src
2012-05-04 16:16:16 -04:00
Adrian Perez
0e266d3f92
ostbuild: Fix DB saving with /tmp and builddir in different volumes
...
This fixes the case where /tmp resides in one volume, and the build
directory in a different one: by storing the temporary file in the
same directory as the target one, we avoid the case in which os.rename()
would cross file system boundaries.
Reviewed-by: Colin Walters <walters@verbum.org>
2012-05-04 16:16:16 -04:00
Colin Walters
717cec46c3
ostbuild: Major rework
2012-05-04 16:16:16 -04:00
Colin Walters
b052758652
manifest local
2012-05-04 16:16:16 -04:00
Colin Walters
7280ce358d
ostbuild: Show ostbuild log messages in warningfilter again
2012-05-04 16:16:16 -04:00
Colin Walters
04befb35d4
gnomeos-install: Call ostree.gnome.org server "gnome", not "origin"
2012-05-04 16:16:16 -04:00
Colin Walters
d040b61d19
core: checkout: Add --from-file option too
...
Easier for debugging if we don't have to redirect stdin.
Conflicts:
src/ostree/ot-builtin-checkout.c
2012-05-04 16:15:20 -04:00
Colin Walters
0660d9e5cf
core: Improve error message if we hit an unreadable file
2012-05-04 16:14:47 -04:00
Colin Walters
26c484faed
core: Add a mutex to cache data structures in preparation for threading
...
Conflicts:
src/libostree/ostree-repo.c
2012-05-04 16:14:28 -04:00
Colin Walters
6cdbedf4e6
core: pull-local: Be a bit more verbose, don't open objects we already have
2012-05-04 16:13:44 -04:00
Colin Walters
ac38a7e1b1
core: Avoid checksumming hardlinks that point into repository
...
By default, when doing a commit, scan all of our loose objects and
build up a (device,inode) -> checksum hash. Then when we're doing a
commit, if we see a file with that (device,inode) pair, we can avoid
checksumming it.
2012-05-04 16:10:30 -04:00
Colin Walters
0fc291b954
core: Drop --link-cache option, we do it by default now for archives
2012-05-04 16:10:30 -04:00
Colin Walters
27358a8de6
core: [INCOMPATIBLE CHANGE] Re-split archive content into .file and .filecontent
...
This will allow us to use hard links again for user-mode checkouts,
rather than the hackish link cache. It was pretty silly anyways to
have file objects be stored with just a small metadata header
prepended, but uncompressed.
Either they should be hardlinkable, or compressed (in pack files).
2012-05-04 16:10:30 -04:00
Colin Walters
3321fa08d7
core: Handle zero-sized archives, improve fsck error message
2012-05-04 13:40:25 -04:00
Colin Walters
8d926c3e36
core: Add valgrind framework, plug various memory leaks
2012-05-04 10:04:32 -04:00
Colin Walters
7ce587da30
core: Optimize commits to raw repositories
...
Avoid creating a temporary intermediate file in the case where we have
the total object length available.
2012-05-04 06:15:47 -04:00
Colin Walters
67f61976f4
core: Clean up object storage API
...
Rather than passing xattr/file_info for all objects, change the API to
assume we're passing the defined object stream for each type. Namely,
for OSTREE_OBJECT_TYPE_FILE, we're now giving the "archive file" data.
This significantly cleans up the code for committing to archive mode
repositories, at the cost of having to (at present) create an
intermediate temporary file when committing to raw repositories.
2012-05-03 19:59:13 -04:00
Colin Walters
99cb8a80fa
daemon: Use g_thread_new() for GLib 2.32
2012-05-03 16:07:18 -04:00
Colin Walters
ff3867c052
core: Increase type safety of some local alloc functions
2012-05-03 16:05:53 -04:00
Colin Walters
19571c7652
build: Link with -Bsymbolic-functions
...
Avoids indirecting through PLT for internal calls, at the cost that we
can't use LD_PRELOAD to override internal functions (but we never
really want that, use a debugger).
2012-05-03 13:40:23 -04:00
Colin Walters
749bf56917
core: Fix gcc uninitialized-variable warning
2012-05-01 18:53:00 -04:00
Colin Walters
ce0b639d64
3.4: Update GDM patches
2012-05-01 18:45:48 -04:00
Colin Walters
d4321629f4
core: Rename local-clone to pull-local
...
Also change it to copy selective refs, rather than enumerating
all objects.
2012-05-01 17:44:29 -04:00