diff --git a/install b/install index 0283a6e..a0253e9 100755 --- a/install +++ b/install @@ -118,10 +118,14 @@ _run() { ### # 1- Update the apt sewers with fresh info ### + if [ -z "$wo_travis" ]; then - if command_exists curl; then - apt-get update -qq - else + if ! { + apt-get update --allow-releaseinfo-change -qq > /dev/null 2>&1 + }; then + apt-get update -qq > /dev/null 2>&1 + fi + if ! command_exists curl; then apt-get update -qq && apt-get -y install curl -qq > /dev/null 2>&1 fi fi diff --git a/wo/core/aptget.py b/wo/core/aptget.py index 4e6fa40..ee6271d 100644 --- a/wo/core/aptget.py +++ b/wo/core/aptget.py @@ -19,8 +19,7 @@ class WOAptGet(): try: with open('/var/log/wo/wordops.log', 'a') as f: proc = subprocess.Popen( - 'DEBIAN_FRONTEND=noninteractive apt-get update ' - '--allow-releaseinfo-change', + 'DEBIAN_FRONTEND=noninteractive apt-get update -qq', shell=True, stdin=None, stdout=f, stderr=subprocess.PIPE, executable="/bin/bash") proc.wait()