zulip/scripts/lib
Anders Kaseorg 90a9dfa7f5 setup-apt-repo: Try to download pre-setup deps before skipping update.
Simulate isn’t enough in some cases.  The error message when this
fails looks sufficiently non-alarming.

LXC:

    default: + apt-get -dy install lsb-release apt-transport-https gnupg
    default: Reading package lists...
    default: Building dependency tree...
    default:
    default: Reading state information...
    default: lsb-release is already the newest version.
    default: gnupg is already the newest version.
    default: The following NEW packages will be installed:
    default:   apt-transport-https
    default: 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    default: Need to get 25.1 kB of archives.
    default: After this operation, 238 kB of additional disk space will be used.
    default: Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main apt-transport-https amd64 1.0.1ubuntu2.3
    default:   404  Not Found [IP: 91.189.88.161 80]
    default: Err http://security.ubuntu.com/ubuntu/ trusty-security/main apt-transport-https amd64 1.0.1ubuntu2.3
    default:   404  Not Found [IP: 91.189.88.161 80]
    default: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt-transport-https_1.0.1ubuntu2.3_amd64.deb  404  Not Found [IP: 91.189.88.161 80]
    default:
    default: E: Some files failed to download
    default: + apt-get update
    […]
    default: Fetched 4,504 kB in 7s (611 kB/s)
    default: Reading package lists...
    default: + apt-get -y install lsb-release apt-transport-https gnupg
    default: Reading package lists...

Docker:

    default: + apt-get -dy install lsb-release apt-transport-https gnupg
    default: Reading package lists...
    default: Building dependency tree...
    default:
    default: Reading state information...
    default: Package gnupg is not available, but is referred to by another package.
    default: This may mean that the package is missing, has been obsoleted, or
    default: is only available from another source
    default: E: Package 'gnupg' has no installation candidate
    default: + apt-get update
    […]
    default: Fetched 16.2 MB in 5s (3,326 kB/s)
    default: Reading package lists...
    default: + apt-get -y install lsb-release apt-transport-https gnupg
    default: Reading package lists...

(All in green.)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-05-27 15:25:00 -07:00
..
third install-yarn: Fix buggy status check for the signature. 2018-04-09 15:09:37 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
build-pgroonga pgroonga: Upgrade from 2.1.6 to 2.1.8. 2019-05-05 17:52:32 -07:00
build-tsearch-extras build-tsearch-extras: Add support for Debian/Ubuntu. 2019-03-08 15:12:56 -08:00
cd_exec scripts: Add cd_exec library helper. 2017-07-21 17:28:20 -07:00
certbot-maybe-renew Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
check-upstart ci: Move backend and production tests to Ubuntu 16.04 (xenial). 2019-05-24 17:07:15 -07:00
clean-unused-caches scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
clean_emoji_cache.py scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
clean_node_cache.py scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
clean_venv_cache.py scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
create-production-venv setup_virtualenv: Do not activate the virtualenv on creation. 2019-01-31 17:55:04 -08:00
create-thumbor-venv create-thumbor-venv: Generalize to CentOS, Fedora, RHEL. 2019-01-07 18:52:27 -08:00
email-mirror-postfix email-mirror-postfix: Replace optparse with argparse. 2017-11-21 21:34:38 -08:00
hash_reqs.py docs: Add documentation for `if False` mypy pattern in scripts. 2018-12-17 11:12:53 -08:00
install Revert "install: Ensure that sudo is installed." 2019-04-04 16:52:20 -07:00
install-node install-node: Upgrade yarn to 1.15.2. 2019-04-14 22:36:14 -07:00
install-shellcheck Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
node_cache.py node_cache: Run yarn install with --frozen-lockfile. 2019-05-20 19:23:37 -07:00
process-mobile-i18n Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
pythonrc.py scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
queue_workers.py scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
setup-apt-repo setup-apt-repo: Try to download pre-setup deps before skipping update. 2019-05-27 15:25:00 -07:00
setup-apt-repo-debathena Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
setup-yum-repo setup-yum-repo: Add prod flag for doing IUS install on CentOS. 2019-01-05 15:49:02 -08:00
setup_path_on_import.py scripts: Fix exec invocation for in-process virtualenv activation. 2019-04-16 17:42:44 -07:00
setup_venv.py url preview: Add python-magic dependency for content-type sniffing. 2019-05-06 12:37:32 -07:00
unpack-zulip scripts/lib/unpack-zulip: Avoid shelling out for rm, mv, mkdir, ln. 2018-11-28 17:48:23 -08:00
upgrade-zulip scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
upgrade-zulip-from-git scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
upgrade-zulip-stage-2 script: Add static asset pipeline option to support OS upgrades. 2019-04-17 12:58:42 -07:00
zulip_tools.py get_dev_uuid_var_path: Fix theoretical shell quoting problem. 2019-03-04 15:20:07 -08:00