summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-15 15:31:45 +0000
committerGerrit Code Review <gerrit@openecomp.org>2017-02-15 15:31:45 +0000
commit34a12ba9b3eb93653ab919d6fc3577a2873f7777 (patch)
tree2ff072f72f34495e47050c26fe8070cabfcb1a04
parent2137b1dc0e3dc92cea8d6363dea107d974101eab (diff)
parenta9cc3672eb31a6f281c7d6ad0978fdc7dc8835f1 (diff)
Merge "Remove apt-get wrap"
-rw-r--r--packer/provision/baseline.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index 99e7460cf..ca79868aa 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -115,29 +115,6 @@ Dpkg::Options {
EOF
- # Wrap apt-get to wait for the lock to become available for operation
- # http://askubuntu.com/questions/132059/how-to-make-a-package-manager-wait-if-another-instance-of-apt-is-running
- cat << 'EOF' >> /usr/local/bin/apt-get
-#!/bin/bash
-
-i=0
-tput sc
-while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
- case $(($i % 4)) in
- 0 ) j="-" ;;
- 1 ) j="\\" ;;
- 2 ) j="|" ;;
- 3 ) j="/" ;;
- esac
- tput rc
- echo -en "\r[$j] Waiting for other software managers to finish..."
- sleep 0.5
- ((i=i+1))
-done
-
-/usr/bin/apt-get "$@"
-
-EOF
chmod +x /usr/local/bin/apt-get
echo "---> Updating operating system"