зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1718188
- Change apt repository path for Debian package artifacts. r=taskgraph-reviewers,jmaher
Preparing for a future where we would also create Ubuntu packages. Differential Revision: https://phabricator.services.mozilla.com/D118786
This commit is contained in:
Родитель
3ec424725d
Коммит
c431efadbb
|
@ -9,5 +9,5 @@ queue_base="$TASKCLUSTER_ROOT_URL/api/queue/v1"
|
|||
|
||||
for task in "$@"; do
|
||||
echo "adding package source $queue_base/task/$task/artifacts/public/build/"
|
||||
echo "deb [trusted=yes] $queue_base/task/$task/artifacts/public/build/ debian/" > "/etc/apt/sources.list.d/99$task.list"
|
||||
echo "deb [trusted=yes] $queue_base/task/$task/artifacts/public/build/ apt/" > "/etc/apt/sources.list.d/99$task.list"
|
||||
done
|
||||
|
|
|
@ -172,12 +172,12 @@ def docker_worker_debian_package(config, job, taskdesc):
|
|||
# Build the package
|
||||
'DEB_BUILD_OPTIONS="parallel=$(nproc) nocheck" dpkg-buildpackage && '
|
||||
# Copy the artifacts
|
||||
"mkdir -p {artifacts}/debian && "
|
||||
"dcmd cp ../{package}_*.changes {artifacts}/debian/ && "
|
||||
"mkdir -p {artifacts}/apt && "
|
||||
"dcmd cp ../{package}_*.changes {artifacts}/apt/ && "
|
||||
"cd {artifacts} && "
|
||||
# Make the artifacts directory usable as an APT repository.
|
||||
"apt-ftparchive sources debian | gzip -c9 > debian/Sources.gz && "
|
||||
"apt-ftparchive packages debian | gzip -c9 > debian/Packages.gz".format(
|
||||
"apt-ftparchive sources apt | gzip -c9 > apt/Sources.gz && "
|
||||
"apt-ftparchive packages apt | gzip -c9 > apt/Packages.gz".format(
|
||||
root_url=get_root_url(False),
|
||||
package=package,
|
||||
src_url=src_url,
|
||||
|
|
Загрузка…
Ссылка в новой задаче