Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have a 'makecache' equivalent command #687

Closed
jlebon opened this issue Mar 16, 2017 · 1 comment
Closed

Have a 'makecache' equivalent command #687

jlebon opened this issue Mar 16, 2017 · 1 comment
Labels
jira for syncing to jira kind/enhancement

Comments

@jlebon
Copy link
Member

jlebon commented Mar 16, 2017

We should consider providing something similar to yum/dnf makecache so that automated consumers can do things like https://github.com/jlebon/redhat-ci/blob/d739c39/testrunner#L267 to work around flaky infra.

@cgwalters
Copy link
Member

And for that matter the equivalent of yum -C.

@jlebon jlebon added this to the Jira milestone Oct 4, 2017
@jlebon jlebon closed this as completed Oct 4, 2017
@jlebon jlebon reopened this Oct 4, 2017
@jlebon jlebon closed this as completed Oct 4, 2017
@jlebon jlebon reopened this Oct 4, 2017
@jlebon jlebon removed this from the Jira milestone Oct 4, 2017
@jlebon jlebon added the jira for syncing to jira label Oct 5, 2017
jlebon added a commit to jlebon/rpm-ostree that referenced this issue Oct 13, 2017
As Colin mentioned in coreos#1035, the new `--cache-only` implemented only the
rpmmd half of the story. Here we complete that story by also ensuring
that when in cache-only mode, we don't download new ostree data nor new
packages. We try to complete the requested operation with what we have.

To do this, we add support for the same `SYNTHETIC` pull that was added
in ostree[1] so that we don't actually pull, but still perform timestamp
checking.

On the pkgcache side, we disable all remote repos and instead insert all
our cached RPMs into the `DnfSack`. Care is taken to still perform
SHA256 verification for local pkg installs/replacements.

[1] ostreedev/ostree#642

Closes: coreos#687
jlebon added a commit to jlebon/rpm-ostree that referenced this issue Oct 13, 2017
As Colin mentioned in coreos#1035, the new `--cache-only` implemented only the
rpmmd half of the story. Here we complete that story by also ensuring
that when in cache-only mode, we don't download new ostree data nor new
packages. We try to complete the requested operation with what we have.

To do this, we add support for the same `SYNTHETIC` pull that was added
in ostree[1] so that we don't actually pull, but still perform timestamp
checking.

On the pkgcache side, we disable all remote repos and instead insert all
our cached RPMs into the `DnfSack`. Care is taken to still perform
SHA256 verification for local pkg installs/replacements.

[1] ostreedev/ostree#642

Closes: coreos#687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira for syncing to jira kind/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants