bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evan...@apache.org
Subject [bigtop] branch master updated: BIGTOP-3136. [Provisioner] Local built repo should have higher priority (#445)
Date Fri, 18 Jan 2019 10:00:21 GMT
This is an automated email from the ASF dual-hosted git repository.

evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new ed4be68  BIGTOP-3136. [Provisioner] Local built repo should have higher priority
(#445)
ed4be68 is described below

commit ed4be689c5a6fa2a4c77caa04f942f70b399e9ab
Author: Evans Ye <evansye@apache.org>
AuthorDate: Fri Jan 18 18:00:15 2019 +0800

    BIGTOP-3136. [Provisioner] Local built repo should have higher priority (#445)
---
 provisioner/utils/setup-env-debian.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/provisioner/utils/setup-env-debian.sh b/provisioner/utils/setup-env-debian.sh
index 098155b..b2bd673 100755
--- a/provisioner/utils/setup-env-debian.sh
+++ b/provisioner/utils/setup-env-debian.sh
@@ -25,6 +25,13 @@ service rng-tools start
 
 if [ $enable_local_repo == "true" ]; then
     echo "deb file:///bigtop-home/output/apt bigtop contrib" > /etc/apt/sources.list.d/bigtop-home_output.list
+    # In BIGTOP-2796 repo installed by puppet has priority 900, here we set higher priority
for local repo
+    cat > /etc/apt/preferences.d/bigtop-home_output.pref << EOF
+Explanation: apt: bigtop-home_output. set local repo to higher priority.
+Package: *
+Pin: release v=*-SNAPSHOT
+Pin-Priority: 901
+EOF
     apt-get update
 else
     apt-get install -y apt-transport-https


Mime
View raw message