Merge "mini-mirror: Ignore src config for publishing"
This commit is contained in:
commit
872514b93f
|
@ -55,21 +55,30 @@ for source_prefix in /opt/sources/*; do
|
||||||
name="${source}-${component}"
|
name="${source}-${component}"
|
||||||
mirrors+=("$name")
|
mirrors+=("$name")
|
||||||
|
|
||||||
aptly -config="${conf}" mirror create -filter="${packages}" \
|
aptly mirror create \
|
||||||
-filter-with-deps "${name}" "${repo}" "${dist}" "${component}"
|
-config="${conf}" \
|
||||||
aptly -config="${conf}" mirror update "${name}"
|
-filter="${packages}" \
|
||||||
aptly -config="${conf}" snapshot create "${name}" from mirror "${name}"
|
-filter-with-deps \
|
||||||
|
"${name}" "${repo}" "${dist}" "${component}"
|
||||||
|
|
||||||
|
aptly mirror update -config="${conf}" "${name}"
|
||||||
|
aptly snapshot create -config="${conf}" "${name}" from mirror "${name}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Publish snapshot and sign if a key passphrase is provided
|
# Publish snapshot and sign if a key passphrase is provided.
|
||||||
com_list=$(echo "${components[@]}" | tr ' ' ',')
|
com_list=$(echo "${components[@]}" | tr ' ' ',')
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
aptly -config="${conf}" publish snapshot -component="${com_list}" \
|
aptly publish snapshot \
|
||||||
-distribution="${dist}" -batch=true -passphrase="${1}" \
|
-batch=true \
|
||||||
|
-component="${com_list}" \
|
||||||
|
-distribution="${dist}" \
|
||||||
|
-passphrase="${1}" \
|
||||||
"${mirrors[@]}" "${source_prefix:13}"
|
"${mirrors[@]}" "${source_prefix:13}"
|
||||||
else
|
else
|
||||||
aptly -config="${conf}" publish snapshot -component="${com_list}" \
|
aptly publish snapshot \
|
||||||
-distribution="${dist}" "${mirrors[@]}" "${source_prefix:13}"
|
-component="${com_list}" \
|
||||||
|
-distribution="${dist}" \
|
||||||
|
"${mirrors[@]}" "${source_prefix:13}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue