-
Notifications
You must be signed in to change notification settings - Fork 55
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
Remove redundant cache_dirs, fix read only cache_dirs issue #58
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bartoszek
force-pushed
the
fix_cache_dirs
branch
from
March 3, 2021 22:00
21e5060
to
ff1a13b
Compare
Prevent using local repository as pacman cache
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
Mar 9, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
Mar 9, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
Mar 9, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
Mar 9, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
Mar 9, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
bartoszek
pushed a commit
to bartoszek/devtools
that referenced
this pull request
May 17, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
superseded by #60 |
hexchain
pushed a commit
to hexchain/devtools
that referenced
this pull request
Sep 8, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
hexchain
pushed a commit
to hexchain/devtools
that referenced
this pull request
Sep 8, 2021
* initialize cache_dirs with one of: 1. value provided in command line -c switch 2. pacman.conf provided in command line -C switch 3. container pacman.conf file * find first writable cache_dir, bind it rw, remove from cache_dirs * extract host mirrors, find file:// ones, append to cache_dirs * extract server url, find file:// ones, append to cache_dirs * concatenate cache_dirs removing duplicates, bind them ro to container * check if any extra cache_dirs was defined, append to container pacman.conf as new [options] section. Fix #57 archlinux#58 archlinux#59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #57
cache_dirs
cache_dirs
contains cached directly sourced from$pac_conf
file withpacconf CacheDir
extra_cache_dirs
contains caches form host mirrors and local repositoriesextra_cache_dirs
fromcache_dirs
preventing using local repository as pacman cache if listed first inpacman.conf
CacheDir=
line in$working_dir/etc/pacman.conf
on eacharch-nspawn
call, append new[options]
section containingCacheDir=${extra_cache_dirs[*]}
to$working_dir/etc/pacman.conf
when$working_dir/etc/pacman.conf
gets overwritten (arch-nspawn -C pacman.conf
)