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

cache: Don't use checksum as filename #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 14, 2019

  1. cache: Don't use checksum as filename

    In some cases (e.g in Pungi), the metadata is changing all the time, fus
    is run multiple times a day and the cache just grows. So instead of
    using checksum we use the reponame passed in the command line invocation
    and the metadata type to create a filename so that only one copy exists
    for that reponame. Therefore the cache layout now is:
    
    $CACHEDIR/fus/$reponame/$chksum.solv
    $CACHEDIR/fus/$reponame/$chksum.solvx
    $CACHEDIR/fus/$reponame/repodata/repomd.xml
    $CACHEDIR/fus/$reponame/repodata/primary.xml.gz
    $CACHEDIR/fus/$reponame/repodata/modules.xml.gz
    $CACHEDIR/fus/$reponame/repodata/group_gz.x86_64.xml.xz
    $CACHEDIR/fus/$reponame/repodata/filelists.xml.gz
    
    Fixes fedora-modularity#71
    
    Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
    r4f4 committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    16bb360 View commit details
    Browse the repository at this point in the history