Skip to content

Commit 1dde177

Browse files
committed
clean repo before adding packages.
1 parent ca9643a commit 1dde177

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/debian/aptly.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ function start_aptly() {
4040
rm -rf ~/.aptly
4141
fi
4242

43+
aptly repo list | grep -q "^${__repo}$" && aptly repo drop "${__repo}" || true
44+
4345
aptly repo create -component "${__component}" -distribution "${__distribution}" -architectures "${__archs}" "${__repo}"
4446

4547
aptly repo add -architectures "${__archs}" "${__repo}" "${__debs}"

0 commit comments

Comments
 (0)