Skip to content

Make file time available for dnf plugins#626

Open
thebearup wants to merge 2 commits into
openSUSE:masterfrom
thebearup:master
Open

Make file time available for dnf plugins#626
thebearup wants to merge 2 commits into
openSUSE:masterfrom
thebearup:master

Conversation

@thebearup

Copy link
Copy Markdown

Makes the "file" time for a given package available for plugin use, to enable virtual snapshots (safe upgrades) based on the time a file was published.

@thebearup

Copy link
Copy Markdown
Author

Context for this pull request: one feature that many users desire is "safe updates." They want to lock into a timestamp at which all updates in a repo have a been tested to be safe/compatible. The Debian ecosystem handles this with repo snapshots, which are cumbersome (an entire copy of the directory structure, which is not very cache-efficient). Since rpm repos have filetime embedded in the repo index, this offers an elegant solution: the client can filter out all packages whose timestamps are greater than the selected timestamp.
From prior investigation, it appears this functionality would best be offered as a dnf plugin vs built-in dnf functionality. However, file time is not exposed to dnf plugins, and build time is a less reliable indicator here (as a package could be built days or weeks ahead of time).
Hence this pull request: expose file time to dnf plugins, so that a plugin can use it for package selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants