Skip to content

Commit

Permalink
repro: Add CACHEDIR option
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jun 6, 2020
1 parent 7470fa8 commit 839e3e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/repro.conf.5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Options

**NOCHECK=**0::
Decide if makepkg should be run with or without --nocheck inside the container.
Note: This could affect the build process.

**CACHEDIR=**cache::
Choose the cache directory location. The default creates a cache in the working directory.

See Also
--------
Expand Down
4 changes: 3 additions & 1 deletion repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ DIFFOSCOPE="diffoscope"
# Turn on/off check in repro
NOCHECK=${NOCHECK:-0}

CACHEDIR="cache"

# Desc: Escalates privileges
orig_argv=("$0" "$@")
src_owner=${SUDO_USER:-$USER}
Expand Down Expand Up @@ -264,7 +266,7 @@ function init_chroot(){
# 1: Location of package
function cmd_check(){
local pkg="${1}"
local cachedir="cache"
local cachedir="${CACHEDIR}"

if [[ ! -f "${pkg}" ]]; then
error "no package file given"
Expand Down

0 comments on commit 839e3e8

Please sign in to comment.