Dag Odenhall

Results 98 comments of Dag Odenhall

Actually looking at the sources for the zypper snapper plugin, it seems they define importance in a configuration file based on pattern matching against affected packages: ```xml kernel-* dracut glibc...

How about an `/etc/dnf/plugins/snapper.conf` where sections are provides wildcards and options are passed directly as the userdata dict to snapper? Then we translate the above thus: ```ini [kernel-*] important=yes [dracut]...

Alternatively `fnmatch.fnmatch(pkg.name, section)` to only match against the package name. I don't know how `hawkey.Reldep` stringifies or how to test any of this, or if it's slow to pattern match...

To mimic the libzypp behavior you also need to make the snapshots conditional on the configuration matching. ```python import fnmatch def __init__(self, base, cli): self.base = base self.description = "...

...Actually filter will test all packages even if the first one matches, so back to nested loops: ```python for section in conf.sections(): for pkg in pkgs: if fnmatch.fnmatch(pkg.name, section): self.userdata...

I'm using Builder from the Fedora repositories. ```console $ rpm -q gnome-builder gnome-builder-3.26.2-1.fc27.x86_64 ```

I don't think anyone is actively working on Attest anymore. I'd be happy to add you to the GitHub and PyPI if you want to work on it?

> That would be cool! If my email address would help, it's "norman at kaapstorm dot com". I've added you to the GitHub, but (as you can see above) I'm...