Add --force-overwrrite with aptly
Change-Id: I9f1ab46a92b28dc033ec05efcc5dbeb357833021
diff --git a/src/com/mirantis/mk/Aptly.groovy b/src/com/mirantis/mk/Aptly.groovy
index 4979ac4..af57660 100644
--- a/src/com/mirantis/mk/Aptly.groovy
+++ b/src/com/mirantis/mk/Aptly.groovy
@@ -88,12 +88,12 @@
opts = "${opts} --dry --diff"
}
- sh("aptly-publisher --url ${server} promote --source ${source} --target ${target} ${opts}")
+ sh("aptly-publisher --url ${server} promote --source ${source} --target ${target} --force-overwrite ${opts}")
}
def publish(server, config='/etc/aptly-publisher.yaml', recreate=false, opts='-d --timeout 600') {
if (recreate == true) {
opts = "${opts} --recreate"
}
- sh("aptly-publisher --url ${server} -c ${config} ${opts} publish")
+ sh("aptly-publisher --url ${server} -c ${config} ${opts} --force-overwrite publish")
}
\ No newline at end of file