~apt-fast/apt-fast/apt-fast-ro

« back to all changes in this revision

Viewing changes to apt-fast

  • Committer: Dominique Lasserre
  • Date: 2019-04-09 11:34:08 UTC
  • Revision ID: git-v1:1a39bd71af5ff2211d57e22b18703c9c81709cd4
Tags: 1.9.8
Fix DLDIR default directory. Closes #162

 * Set /var/cache/apt/apt-fast as default directory over
   /var/cache/apt/archives/apt-fast .

   Prevents apt warning:

    W: Problem unlinking the file apt-fast - pkgAcquire::Clean (21: Is a directory)

 * Update README and fix language in config file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
# Check if APT config option Dir::Cache::archives::apt-fast-partial is set.
125
125
eval "$(apt-config shell apt_fast_partial Dir::Cache::archives::apt-fast-partial/d)"
126
126
if [ -z "$apt_fast_partial" ]; then
127
 
  eval "$(apt-config -o Dir::Cache::archives::apt-fast-partial=apt-fast shell DLDIR Dir::Cache::archives::apt-fast-partial/d)"
 
127
  DLDIR="$(realpath "${APTCACHE}/../apt-fast")"
128
128
else
129
 
  eval "$(apt-config shell DLDIR Dir::Cache::archives::apt-fast-partial/d)"
 
129
  DLDIR="${apt_fast_partial}"
130
130
fi
131
131
# Currently not needed.
132
132
eval "$(apt-config shell LISTDIR Dir::State::lists/d)"