Commit Graph

539 Commits

Author SHA1 Message Date
Colin Walters
b57da0c8ef Merge pull request #115 from cgwalters/rebase-statusline
rebase: Also end status line after pull is complete
2015-03-17 08:41:04 -04:00
Colin Walters
79a89f90d5 rebase: Also end status line after pull is complete
This is what `upgrade` does.  Otherwise we end up not printing a
newline, and the next line gets glommed on, and we look silly.
2015-03-16 21:22:26 -04:00
Colin Walters
c7e437a281 postprocess: Drop the version checking code
This breaks things when I add automatic_version_prefix and am using a
local repository - it's not buying me anything, and makes it harder to
hack.
2015-03-12 21:45:11 -04:00
Colin Walters
4aafa8d46d libglnx: Update
Fixes O_CREAT fortify-source error.
2015-03-10 20:54:04 -04:00
Jonathan Dowland
bd834f1f90 README.md: Fix minor typo 2015-03-09 11:37:56 -04:00
Giuseppe Scrivano
38d34e757a configure.ac: improve detection of hy_sack_create ABI change
Fedora 21 seems to use the old ABI with the version 0.5.3.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-06 14:30:02 +01:00
Giuseppe Scrivano
e927f90de1 Makefile.dist-packaging: fix make rpm with submodules
Makefile.dist-packaging seems to assume to be run under packaging/ as
"make -C packaging -f Makefile.dist-packaging rpm" so ensure the
srcdir is set correctly to point to the parent directory.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-06 14:30:02 +01:00
Giuseppe Scrivano
4118617666 autogen.sh: retrieve libglnx
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-06 14:30:02 +01:00
Colin Walters
4b19dd1266 Move the little "libcontainer" code into libglnx
I want to share it with ostree, and potentially xdg-app.
2015-03-04 18:29:55 -05:00
Matthew Barnes
deef74e7a0 compose: Sort the goal before printing 2015-02-24 10:15:20 -05:00
Colin Walters
f50e19dfd1 compose: Print the goal
It's useful to see what's going to be installed before we do it.
2015-02-19 18:42:53 -05:00
Colin Walters
9a95c0a18b libglnx: Update to get g_auto(GPtrArray) 2015-02-19 18:40:44 -05:00
Colin Walters
920a01627f libglnx: Update to latest 2015-02-19 15:53:18 -05:00
Colin Walters
491892cc11 Merge pull request #108 from cgwalters/use-libglnx
Start using libglnx
2015-02-17 17:22:06 -05:00
Colin Walters
392acdf963 Move console code to libglnx
The main goal is to be able to share this with OSTree.
2015-02-17 16:54:54 -05:00
Colin Walters
3190eff276 Start using libglnx
The high level goal is to deprecate libgsystem.  I was trying to share
code between ostree/rpm-ostree, but it was too painful to commit to
forver frozen ABI for new utility APIs.

The git submodule approach will much more easily allow breaking
API/ABI, and iterate on APIs until they either land in GLib or not.

Note that libglnx will not use GFile*, so a full port to it will
involve also not using that.  Thus, it will be necessarily
incremental; in the meantime we'll link to both libgsystem and
libglnx.
2015-02-15 14:01:13 -05:00
Colin Walters
99d3b5d792 Merge pull request #105 from cgwalters/hawkey-053
treepkgdiff: Adapt to Hawkey 0.5.3 API break
2015-02-05 11:54:54 -05:00
Colin Walters
5268cdf776 treepkgdiff: Adapt to Hawkey 0.5.3 API break
We will work on both old and new versions.

See 8ce3ce754f
2015-02-05 09:21:07 -05:00
Colin Walters
5235cc5559 doc: Delete bit about having to disable SELinux
This is only true for the libguestfs-based disk image generation.
2015-02-05 09:07:54 -05:00
Colin Walters
4fbdb3ec77 doc/treefile: Clarify repos 2015-02-04 13:59:31 -05:00
Colin Walters
3404764b31 Merge pull request #104 from giuseppe/giuseppe/fix-build
build: replace libhif/hif-context-private.h with libhif/hif-utils.h
2015-02-03 08:28:19 -05:00
Giuseppe Scrivano
6547fbc84f build: replace libhif/hif-context-private.h with libhif/hif-utils.h
The header was renamed in newer versions of libhif.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-03 11:07:54 +01:00
Colin Walters
aa285329c7 build: Require 0.2.0 libhif, drop hawkey/libsolv build option
We hard depend on 0.2.0 (which is current git master).
2015-02-02 16:44:06 -05:00
Colin Walters
fcd1b43249 compose-tree: Add --touch-if-changed
This is a convenient way for external tools to integrate rpm-ostree
better into automation.  With the caching, it's now cheaper to
just rerun rpm-ostree if you know an input yum repository changed,
or just on a timer.

Then one can use this flag to determine whether or not to launch any
further processes after rpm-ostree, such as disk image generation,
test suites, etc.
2015-02-02 16:39:26 -05:00
Colin Walters
9c8dcbe98c [libhif] Update to support "documentation" flag 2015-02-02 16:39:26 -05:00
Colin Walters
5f61945302 [libhif] Actually honor --force-nocache option 2015-02-02 16:39:26 -05:00
Colin Walters
172ff5712b [libhif] Port to new hif_error_set_from_hawkey()
And drop our internal copy.
2015-02-02 16:39:26 -05:00
Colin Walters
53f0c191ac [libhif]: Use the new proxy API to honor http_proxy
For the obvious reasons, this helps avoid redownloading packages
continuously.
2015-02-02 16:39:26 -05:00
Colin Walters
aa190edfbf [libhif] Rework compose caching with new packaging APIs
With yum, we would have had to make a custom Python app to cleanly
separate the fetch metadata/depsolve phases from installation.

Now that libhif/hawkey gives us that, make use of it by exiting after
depsolve if the previous compose has the same package set, and the
treefile is the same.  This saves a fairly substantial amount of time
and I/O, and makes it much more palatable to simply run the compose
tool on demand in response to say repo regeneration notifications.

A further important note; --cachedir is no longer used; we store the
inputhash in the OSTree commit metadata itself.
2015-02-02 16:39:26 -05:00
Colin Walters
0ff3d1de33 [libhif] Exit again on SIGINT/SIGTERM
A major (if not the biggest) point of this endeavor is to support
atomic/idempotent operation.
2015-02-02 16:39:26 -05:00
Colin Walters
7e0a55cd64 [libhif]: Add initial progress reporting
This requires open-coding the 3 steps that hif_context_run() was
doing.  Which is fine, because ultimately we want to have more control
over that.
2015-02-02 16:39:26 -05:00
Colin Walters
01772d67ad [libhif] Implement support for install-langs 2015-02-02 16:39:25 -05:00
Colin Walters
2263bb35f6 [libhif] compose: Initial port to libhif instead of yum
There are a lot of advantages to this.  See the linked issue
for more details, but briefly:

 - Lays the groundwork for package layering
 - Better caching (exit compose after depsolve if no changes)
 - Better error handling
 - Potential for unprivileged package downloads
 - Potential to better containerize installs

TODO:
 - langs handling
 - progress output

Closes: https://github.com/projectatomic/rpm-ostree/issues/53
2015-02-02 16:39:25 -05:00
Colin Walters
4511a1d8ac consoleprogress: New class for writing to the console
Some influence from both systemd and packagekit-glib2.
2015-02-02 16:39:25 -05:00
Matthew Barnes
0c39e7195e configure.ac: Fix help for --enable-patched-hawkey-and-libsolv
Make the help string agree with the actual option name.
2015-02-02 16:33:20 -05:00
Colin Walters
9ccf24a061 Merge pull request #102 from cgwalters/usergroup-docs
docs: It's ignore-*removed*, not ignore-remove
2015-01-30 20:44:09 -05:00
Colin Walters
7cb3a01887 docs: It's ignore-*removed*, not ignore-remove
See the code.  (We could change the code to match the docs, but I like
the extra `d` and it's basically ABI now anyways).
2015-01-30 18:04:11 -05:00
Colin Walters
e066834e72 Release 2015.3 2015-01-23 17:14:12 -05:00
James Antill
fa254def0a Merge pull request #101 from james-antill/master
passwd: Use check-* file json config. entries to migrate data across commits
2015-01-22 15:16:01 -05:00
James Antill
e120675b82 passwd: Use check-* file json config. entries to migrate data across commits 2015-01-22 15:13:50 -05:00
James Antill
28fb760cc8 docs: Add documentation json config. 2015-01-16 00:33:22 -05:00
James Antill
834e62826d compose: Add documentation json config. for nodocs yum/rpm transaction flag 2015-01-16 00:33:22 -05:00
Colin Walters
2cb6c08254 Merge pull request #100 from chmouel/patch-1
Fix small typo in manpage
2015-01-15 10:07:13 -05:00
Chmouel Boudjnah
a4bb11c4e1 Fix small typo in manpage 2015-01-15 15:49:07 +01:00
James Antill
b49a489f9f Merge pull request #94 from james-antill/master
compose: Add automatic_version_prefix to json config.
2015-01-12 15:14:49 -05:00
James Antill
8aeb1272f9 tests: Add tests for automatic_version_prefix 2015-01-12 15:13:55 -05:00
James Antill
f2d5369050 docs: Add documentation for automatic_version_prefix 2015-01-12 15:11:45 -05:00
Colin Walters
08b22c5788 Merge pull request #97 from cgwalters/fix-clientonly-build
passwd-util: Drop unnecessary #include
2015-01-12 11:59:58 -05:00
Colin Walters
dca6e9b1e8 passwd-util: Drop unnecessary #include
This was breaking the

    make -C packaging -f Makefile.dist-packaging dist-snapshot-without-compose-tooling

build.
2015-01-12 11:40:30 -05:00
James Antill
feb4c7ce52 compose: Create _rpmostree_util_next_version for testing 2015-01-12 00:07:33 -05:00