Skip to content

Commit

Permalink
Merge pull request #48 from matyasselmeci/pr/per-key-cache
Browse files Browse the repository at this point in the history
Name the cache dir after the primary key
  • Loading branch information
mwestphall authored Oct 3, 2023
2 parents 8bd1927 + 30ff243 commit d23f69f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/new_mashfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ esac
if [[ $REPO == development || \
$TAG == *contrib* || \
$TAG == *empty* ]]; then
KEYS="$auto_key $developer_key"
if [[ $developer_key == "$auto_key" ]]; then
KEYS=$auto_key
else
KEYS="$auto_key $developer_key"
fi
else
KEYS=$developer_key
fi
Expand All @@ -88,7 +92,7 @@ esac

TEMPLATEDIR=/usr/share/repo

KEYSDIR=$(tr -c '0-9A-Za-z' '_' <<<"$KEYS")
KEYSDIR=$(echo -n "$KEYS" | tr -c '0-9A-Za-z' '_')

sed "
s/{YUMREPO}/$TAG/
Expand Down

0 comments on commit d23f69f

Please sign in to comment.