Repository: conda/conda

Issue:
Local package cache higher in priority than conda-build folders
If I have two recipes, "upstream" and "downstream", I see very undesirable behavior with conda.

1. build upstream - hash abc123, timestamp 
2. build downstream
3. change upstream, rebuild - hash (somethingnew)
4. build downstream

The second "downstream" build will use the initial "upstream" package, not the more recent build.  I suspect that it is because conda is finding the older version first in the pkgs folder.  I have not been able to track down where this happens.  Here's where I've traced it:

1. get_index: https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/core/index.py#L39
2. get_channel_priority_map prepends "local": https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/core/index.py#L126
3. 'local' multichannel defined using conda_build_local_urls: https://github.com/conda/conda/blob/301133cb8c804730c218ad8e47f116a8b1af51fc/conda/base/context.py#L453
4. conda_build_local_paths: https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/base/context.py#L197

None of these show pkgs.  Where is this coming in?
Local package cache higher in priority than conda-build folders
If I have two recipes, "upstream" and "downstream", I see very undesirable behavior with conda.

1. build upstream - hash abc123, timestamp 
2. build downstream
3. change upstream, rebuild - hash (somethingnew)
4. build downstream

The second "downstream" build will use the initial "upstream" package, not the more recent build.  I suspect that it is because conda is finding the older version first in the pkgs folder.  I have not been able to track down where this happens.  Here's where I've traced it:

1. get_index: https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/core/index.py#L39
2. get_channel_priority_map prepends "local": https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/core/index.py#L126
3. 'local' multichannel defined using conda_build_local_urls: https://github.com/conda/conda/blob/301133cb8c804730c218ad8e47f116a8b1af51fc/conda/base/context.py#L453
4. conda_build_local_paths: https://github.com/conda/conda/blob/347b8e5d5c0f8798f950b07d08d9f0c81241843b/conda/base/context.py#L197

None of these show pkgs.  Where is this coming in?


Discussion:
Ping @kalefranz, @csoja, this bug is preventing the new testing mechanism from working since @msarahan has implemented a workaround that deletes the very packages I am testing (`clean_pkg_cache`).
The pkgs folder is not treated as a channel at all so that can't be it. The tarballs there are given the priority assigned to the channels they came from.
(Though that leads to the question: what channel is assigned to packages that are pulled from the local channel? What does urls.txt say about them?)
I'd like to raise the priority of this bug (ping @csoja). It seems not to be related to local vs pkg-cache, or at least I have seen conda pick the older of two packages in the same channel (c3i_test). To reproduce this (on LInux, though Docker for mac would be workable):

```
pushd /tmp
wget -c https://repo.continuum.io/pkgs/misc/preview/Miniconda3-4.3.22.dev3-Linux-x86_64.sh
bash Miniconda3-4.3.22.dev3-Linux-x86_64.sh -bfp /tmp/m
. /tmp/m/bin/activate
# This is just so that the tar.bz2 gets extracted
conda install ${CONDA_PREFIX}/pkgs/conda-4.3.22-py36h274531e_1.tar.bz2
conda update -y conda
```

Here `conda update -y conda` should, AFAICT, do nothing, but instead:

```
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment /tmp/m:

The following packages will be UPDATED:

    conda: 4.3.22-py36h274531e_1 --> 4.3.22-py36h656d191_1
```

.. despite:

```
find ${CONDA_PREFIX}/pkgs -path "*/conda-4.3.22-*/info/index.json" -exec grep -H timestamp {} \;
```

.. giving:

```
/tmp/m/pkgs/conda-4.3.22-py36h274531e_1/info/index.json:  "timestamp": 1500831428589,
/tmp/m/pkgs/conda-4.3.22-py36h656d191_1/info/index.json:  "timestamp": 1499976843679,
```

Here `conda` has installed the older version.

I'll follow up with the debug output very soon.
```
conda update conda -v -v -v
DEBUG conda.cli.main:init_loggers(95): verbosity set to 3
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/patchelf-0.9-h12092aa_2.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/jinja2-2.9.5-py36hd692eab_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/idna-2.5-py36h317042d_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libiconv-1.14-h79488b8_5.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/beautifulsoup4-4.5.3-py36ha3e3e50_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pkginfo-1.4.1-py36ha36d807_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/openssl-1.0.2l-h09529b2_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libstdcxx_linux-64-7.1.0-hddd74c5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/requests-2.18.1-py36hfc65a8c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libtool-2.4.6-hee670f0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/jsonschema-2.6.0-py36h553177d_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-4.3.22-py36h274531e_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/python-3.6.2-hc1eee60_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyopenssl-16.2.0-py36ha4e8928_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/setuptools-33.1.1-py36h9531ec0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/filelock-2.0.6-py36hecab0e9_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/perl-5.26.0-had2d7c4_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/wheel-0.29.0-py36h53b1bae_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/asn1crypto-0.22.0-py36h1e05746_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/vcversioner-2.16.0.0-py36hd7ef79c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pycosat-0.6.1-py36hd85b70a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libffi-3.2.1-ha60f83d_3.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/coverage-4.4.1-py36he22ce40_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pkg-config-0.29.2-h3348825_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-build-3.0.8-py36h88d0164_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/expat-2.2.1-hb2eb8a5_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/gdbm-1.13-h1da15e7_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/zlib-1.2.11-hcf0e70e_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/six-1.10.0-py36h5d5a401_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pip-9.0.1-py36h3c3718a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pytest-3.1.3-py36hc61c924_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libgfortran_linux-64-7.1.0-hced3fcd_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/bzip2-1.0.6-h6e5dee2_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/readline-7.0-ha53fe01_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/yaml-0.1.6-h21378f5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cryptography-1.8.1-py36h4724394_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pytest-cov-2.4.0-py36hd80946c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/xz-5.2.3-h0585ff0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/chardet-3.0.2-py36h98ed7fb_2.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pysocks-1.6.7-py36he05b2b2_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/m4-1.4.18-h6a3c4c4_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/automake-1.15.1-pl526h5d1f53f_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/autoconf-2.69-pl526ha670186_5.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-env-2.6.0-h36134e3_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyyaml-3.12-py36h82f6ce8_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ca-certificates-2017.01.19-h758a649_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/glob2-0.5-py36hcccd8a5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pycparser-2.17-py36h2510d72_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-verify-2.0.0-py36hb6ee407_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/urllib3-1.21.1-py36hf62cdc1_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libgcc_linux-64-7.1.0-h98fb546_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/certifi-2017.4.17-py36h91f7e26_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ncurses-6.0-he7fb7a6_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/curl-7.52.1-he4bd48f_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyparsing-2.2.0-py36h614a43e_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ruamel_yaml-0.11.14-py36h2509325_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cffi-1.10.0-py36hd280c6a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/py-1.4.33-py36h884c705_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/sqlite-3.16.2-h1ca8275_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/markupsafe-1.0-py36h9e26fae_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cython-0.25.2-py36hf2b3963_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/packaging-16.8-py36hb3ac33a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/tk-8.6.6-h7240f3b_6.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/git-2.13.2-pl526hfe81c7d_0.json
DEBUG conda.core.index:fetch_index(106): channel_urls=OrderedDict([('https://conda.anaconda.org/c3i_test/linux-64', ('defaults', 0)), ('https://conda.anaconda.org/c3i_test/noarch', ('defaults', 0)), ('https://repo.continuum.io/pkgs/free/linux-64', ('https://repo.continuum.io/pkgs/free', 2)), ('https://repo.continuum.io/pkgs/free/noarch', ('https://repo.continuum.io/pkgs/free', 2)), ('https://repo.continuum.io/pkgs/r/linux-64', ('https://repo.continuum.io/pkgs/r', 3)), ('https://repo.continuum.io/pkgs/r/noarch', ('https://repo.continuum.io/pkgs/r', 3)), ('https://repo.continuum.io/pkgs/pro/linux-64', ('https://repo.continuum.io/pkgs/pro', 4)), ('https://repo.continuum.io/pkgs/pro/noarch', ('https://repo.continuum.io/pkgs/pro', 4))])
Fetching package metadata ...DEBUG urllib3.util.retry:from_int(200): Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /tmp/m/pkgs/urls.txt
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /home/ray/.conda/pkgs/urls.txt
DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://conda.anaconda.org/c3i_test/linux-64 at /tmp/m/pkgs/cache/b416b7b7.json
DEBUG conda.connection:add_binstar_token(144): Adding anaconda token for url <https://conda.anaconda.org/c3i_test/linux-64/repodata.json>
DEBUG urllib3.connectionpool:_new_conn(818): Starting new HTTPS connection (1): conda.anaconda.org
DEBUG urllib3.connectionpool:_make_request(395): https://conda.anaconda.org:443 "GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/linux-64/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/linux-64/repodata.json HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> If-Modified-Since: Tue, 25 Jul 2017 12:51:26 GMT

<<HTTPS 304 NOT MODIFIED
< CF-RAY: 3846724cedb669f5-LHR
< Date: Wed, 26 Jul 2017 09:49:00 GMT
< Server: cloudflare-nginx
< Set-Cookie: __cfduid=d78c5fd31985d6fb661b882f416ab46421501062540; expires=Thu, 26-Jul-18 09:49:00 GMT; path=/; domain=.anaconda.org; HttpOnly
< Strict-Transport-Security: max-age=31536000
< Connection: keep-alive
< Elapsed: 00:05.558808

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://conda.anaconda.org/c3i_test/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/b416b7b7.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/b416b7b7.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://conda.anaconda.org/c3i_test/noarch at /tmp/m/pkgs/cache/917d14b1.json
DEBUG conda.connection:add_binstar_token(144): Adding anaconda token for url <https://conda.anaconda.org/c3i_test/noarch/repodata.json>
DEBUG urllib3.connectionpool:_make_request(395): https://conda.anaconda.org:443 "GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/noarch/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/noarch/repodata.json HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> Cookie: __cfduid=d78c5fd31985d6fb661b882f416ab46421501062540
> If-Modified-Since: Tue, 25 Jul 2017 12:51:26 GMT

<<HTTPS 304 NOT MODIFIED
< CF-RAY: 3846724fcef369f5-LHR
< Date: Wed, 26 Jul 2017 09:49:01 GMT
< Server: cloudflare-nginx
< Strict-Transport-Security: max-age=31536000
< Connection: keep-alive
< Elapsed: 00:00.376864

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://conda.anaconda.org/c3i_test/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/917d14b1.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/917d14b1.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/free/linux-64 at /tmp/m/pkgs/cache/db552c1e.json
DEBUG urllib3.connectionpool:_new_conn(818): Starting new HTTPS connection (1): repo.continuum.io
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/free/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/free/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> If-Modified-Since: Tue, 25 Jul 2017 21:38:30 GMT
> If-None-Match: "528db52103850ab1ea421877ce0622b5"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672720cfd1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "528db52103850ab1ea421877ce0622b5"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 21:38:30 GMT
< Server: cloudflare-nginx
< Set-Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546; expires=Thu, 26-Jul-18 09:49:06 GMT; path=/; domain=.continuum.io; HttpOnly
< Vary: Accept-Encoding
< x-amz-id-2: HrQ88aHFkfAQvU3FMBfq3AZmIcGDxTO46nbN5kdQJHaSEWCyo4K+aHvL5gMxOi8qIWJmZF33+L4=
< x-amz-request-id: 6C00A32855FF2A5B
< x-amz-version-id: v88OrIeB9hB3TbY6DI1SeBnNxxjoz8It
< Connection: keep-alive
< Elapsed: 00:05.120355

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/free/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/db552c1e.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/db552c1e.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/free/noarch at /tmp/m/pkgs/cache/9ca791dd.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/free/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/free/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:04:09 GMT
> If-None-Match: "e5e41f3b07a5ae63250ff2c9a1a99f3b"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672733da31377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "e5e41f3b07a5ae63250ff2c9a1a99f3b"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:04:09 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: FDLYjD2Bc7q7L0boRmbiNQDanHzsfgBen/atQMaPbQcb4b2jqe6SWGSqeD+iQnVioaeFV82zbJE=
< x-amz-request-id: 9C3CC975BFDD6619
< x-amz-version-id: 9Zqwri8g_5defKke_hvbGibCznu18KQb
< Connection: keep-alive
< Elapsed: 00:00.018662

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/free/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/9ca791dd.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/9ca791dd.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/r/linux-64 at /tmp/m/pkgs/cache/6bfb14bd.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/r/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/r/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:05:32 GMT
> If-None-Match: "b7bc1b9927fa701bad6c8139397b758c"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672735dbc1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "b7bc1b9927fa701bad6c8139397b758c"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:05:32 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: z+3pUl3L018WMeobXtcBuPaE6jMe0c544bzG5K1C8L8Bo33MR1QmLWjXcsFvnBN0K/uJCViAx6c=
< x-amz-request-id: 630143C21248F89A
< x-amz-version-id: rcxLjX4hLQ82_pOqxYLqW3tjmKKrd8ce
< Connection: keep-alive
< Elapsed: 00:00.032432

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/r/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/6bfb14bd.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/6bfb14bd.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/r/noarch at /tmp/m/pkgs/cache/716b88c0.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/r/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/r/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 31 Jan 2017 05:50:11 GMT
> If-None-Match: "e8c60de6ccbc390c49c0a91035a53c64"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 38467273bdec1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "e8c60de6ccbc390c49c0a91035a53c64"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 31 Jan 2017 05:50:11 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: LYfFs5RzEnhgAm4xzQx8ehkxG75ZW6bvbqrwfHIWiZ9t4wxc0YWXIYuHyM0vwo39yO+SwmmzA6g=
< x-amz-request-id: 95938D78B0ACA670
< x-amz-version-id: q9tvk8Y4cFZ5bm2fRh8sN6opdl7qs.78
< Connection: keep-alive
< Elapsed: 00:00.019828

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/r/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/716b88c0.json
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/pro/linux-64 at /tmp/m/pkgs/cache/8db5e652.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/pro/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/pro/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 21:39:45 GMT
> If-None-Match: "041674100c301c307f0b99686bb704fd"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 38467273ee001377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "041674100c301c307f0b99686bb704fd"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 21:39:45 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: 8BOV1Utn0yTEqRCCg7r2+rq/CGaJM4Y9pP3IIbiEFnBqUdXvgPxwhdMFmgJL98QY7E59E+xnGQ8=
< x-amz-request-id: DDBE61B3FC7EF8FF
< x-amz-version-id: O1CUvUpbSVOq9XAXTcktbpj_eoM7XcC2
< Connection: keep-alive
< Elapsed: 00:00.037129

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/pro/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/8db5e652.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/8db5e652.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/pro/noarch at /tmp/m/pkgs/cache/08159f17.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/pro/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/pro/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:05:32 GMT
> If-None-Match: "a03a8ce02144dee86add4a372c6c86b7"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672742e281377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "a03a8ce02144dee86add4a372c6c86b7"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:05:32 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: maHaUBDzZNM3YTk5Ql5nZrBctDRj3nbHrku0aXFhyjk0+At6uXaeKPfCa3FbxwmfTg0e64sGdVE=
< x-amz-request-id: 77E33E5835086704
< x-amz-version-id: xUxq8fc5dIfxN8yyTTMILlG.G08OZ1vc
< Connection: keep-alive
< Elapsed: 00:00.021581

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/pro/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/08159f17.json
.
DEBUG conda.plan:add_defaults_to_specs(371): H0 specs=[MatchSpec('conda')]
DEBUG conda.plan:add_defaults_to_specs(386): H2 python True
DEBUG conda.plan:add_defaults_to_specs(402): H3 python
DEBUG conda.plan:add_defaults_to_specs(386): H2 lua False
DEBUG conda.plan:add_defaults_to_specs(391): H2A lua
DEBUG conda.plan:add_defaults_to_specs(417): HF specs=[MatchSpec('conda'), 'python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)']
DEBUG conda.plan:augment_specs(714): Pinned specs=()
DEBUG conda.resolve:install_specs(790): Checking satisfiability of current install
DEBUG conda.resolve:bad_installed(740): Checking if the current environment is consistent
Solving package specifications: DEBUG conda.resolve:solve(845): Solving for [MatchSpec('conda'), MatchSpec('python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)'), MatchSpec('patchelf (target=defaults::patchelf-0.9-h12092aa_2)'), MatchSpec('jinja2 (target=defaults::jinja2-2.9.5-py36hd692eab_0)'), MatchSpec('idna (target=defaults::idna-2.5-py36h317042d_0)'), MatchSpec('libiconv (target=defaults::libiconv-1.14-h79488b8_5)'), MatchSpec('beautifulsoup4 (target=defaults::beautifulsoup4-4.5.3-py36ha3e3e50_0)'), MatchSpec('pkginfo (target=defaults::pkginfo-1.4.1-py36ha36d807_0)'), MatchSpec('openssl (target=defaults::openssl-1.0.2l-h09529b2_0)'), MatchSpec('libstdcxx_linux-64 (target=defaults::libstdcxx_linux-64-7.1.0-hddd74c5_0)'), MatchSpec('requests (target=defaults::requests-2.18.1-py36hfc65a8c_0)'), MatchSpec('libtool (target=defaults::libtool-2.4.6-hee670f0_0)'), MatchSpec('jsonschema (target=defaults::jsonschema-2.6.0-py36h553177d_0)'), MatchSpec('pyopenssl (target=defaults::pyopenssl-16.2.0-py36ha4e8928_0)'), MatchSpec('setuptools (target=defaults::setuptools-33.1.1-py36h9531ec0_0)'), MatchSpec('filelock (target=defaults::filelock-2.0.6-py36hecab0e9_0)'), MatchSpec('perl (target=defaults::perl-5.26.0-had2d7c4_0)'), MatchSpec('wheel (target=defaults::wheel-0.29.0-py36h53b1bae_0)'), MatchSpec('asn1crypto (target=defaults::asn1crypto-0.22.0-py36h1e05746_0)'), MatchSpec('vcversioner (target=defaults::vcversioner-2.16.0.0-py36hd7ef79c_0)'), MatchSpec('pycosat (target=defaults::pycosat-0.6.1-py36hd85b70a_0)'), MatchSpec('libffi (target=defaults::libffi-3.2.1-ha60f83d_3)'), MatchSpec('coverage (target=defaults::coverage-4.4.1-py36he22ce40_0)'), MatchSpec('pkg-config (target=defaults::pkg-config-0.29.2-h3348825_0)'), MatchSpec('conda-build (target=defaults::conda-build-3.0.8-py36h88d0164_0)'), MatchSpec('expat (target=defaults::expat-2.2.1-hb2eb8a5_1)'), MatchSpec('gdbm (target=defaults::gdbm-1.13-h1da15e7_0)'), MatchSpec('zlib (target=defaults::zlib-1.2.11-hcf0e70e_0)'), MatchSpec('six (target=defaults::six-1.10.0-py36h5d5a401_1)'), MatchSpec('pip (target=defaults::pip-9.0.1-py36h3c3718a_0)'), MatchSpec('pytest (target=defaults::pytest-3.1.3-py36hc61c924_0)'), MatchSpec('libgfortran_linux-64 (target=defaults::libgfortran_linux-64-7.1.0-hced3fcd_0)'), MatchSpec('bzip2 (target=defaults::bzip2-1.0.6-h6e5dee2_1)'), MatchSpec('readline (target=defaults::readline-7.0-ha53fe01_1)'), MatchSpec('yaml (target=defaults::yaml-0.1.6-h21378f5_0)'), MatchSpec('cryptography (target=defaults::cryptography-1.8.1-py36h4724394_0)'), MatchSpec('pytest-cov (target=defaults::pytest-cov-2.4.0-py36hd80946c_0)'), MatchSpec('xz (target=defaults::xz-5.2.3-h0585ff0_0)'), MatchSpec('chardet (target=defaults::chardet-3.0.2-py36h98ed7fb_2)'), MatchSpec('pysocks (target=defaults::pysocks-1.6.7-py36he05b2b2_1)'), MatchSpec('m4 (target=defaults::m4-1.4.18-h6a3c4c4_0)'), MatchSpec('automake (target=defaults::automake-1.15.1-pl526h5d1f53f_0)'), MatchSpec('autoconf (target=defaults::autoconf-2.69-pl526ha670186_5)'), MatchSpec('conda-env (target=defaults::conda-env-2.6.0-h36134e3_0)'), MatchSpec('pyyaml (target=defaults::pyyaml-3.12-py36h82f6ce8_1)'), MatchSpec('ca-certificates (target=defaults::ca-certificates-2017.01.19-h758a649_0)'), MatchSpec('glob2 (target=defaults::glob2-0.5-py36hcccd8a5_0)'), MatchSpec('pycparser (target=defaults::pycparser-2.17-py36h2510d72_0)'), MatchSpec('conda-verify (target=defaults::conda-verify-2.0.0-py36hb6ee407_0)'), MatchSpec('urllib3 (target=defaults::urllib3-1.21.1-py36hf62cdc1_1)'), MatchSpec('libgcc_linux-64 (target=defaults::libgcc_linux-64-7.1.0-h98fb546_0)'), MatchSpec('certifi (target=defaults::certifi-2017.4.17-py36h91f7e26_0)'), MatchSpec('ncurses (target=defaults::ncurses-6.0-he7fb7a6_0)'), MatchSpec('curl (target=defaults::curl-7.52.1-he4bd48f_1)'), MatchSpec('pyparsing (target=defaults::pyparsing-2.2.0-py36h614a43e_0)'), MatchSpec('ruamel_yaml (target=defaults::ruamel_yaml-0.11.14-py36h2509325_0)'), MatchSpec('cffi (target=defaults::cffi-1.10.0-py36hd280c6a_0)'), MatchSpec('py (target=defaults::py-1.4.33-py36h884c705_0)'), MatchSpec('sqlite (target=defaults::sqlite-3.16.2-h1ca8275_0)'), MatchSpec('markupsafe (target=defaults::markupsafe-1.0-py36h9e26fae_0)'), MatchSpec('cython (target=defaults::cython-0.25.2-py36hf2b3963_1)'), MatchSpec('packaging (target=defaults::packaging-16.8-py36hb3ac33a_0)'), MatchSpec('tk (target=defaults::tk-8.6.6-h7240f3b_6)'), MatchSpec('git (target=defaults::git-2.13.2-pl526hfe81c7d_0)')]
DEBUG conda.resolve:get_reduced_index(374): Retrieving packages for: [MatchSpec('conda'), MatchSpec('python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)'), MatchSpec('patchelf (target=defaults::patchelf-0.9-h12092aa_2)'), MatchSpec('jinja2 (target=defaults::jinja2-2.9.5-py36hd692eab_0)'), MatchSpec('idna (target=defaults::idna-2.5-py36h317042d_0)'), MatchSpec('libiconv (target=defaults::libiconv-1.14-h79488b8_5)'), MatchSpec('beautifulsoup4 (target=defaults::beautifulsoup4-4.5.3-py36ha3e3e50_0)'), MatchSpec('pkginfo (target=defaults::pkginfo-1.4.1-py36ha36d807_0)'), MatchSpec('openssl (target=defaults::openssl-1.0.2l-h09529b2_0)'), MatchSpec('libstdcxx_linux-64 (target=defaults::libstdcxx_linux-64-7.1.0-hddd74c5_0)'), MatchSpec('requests (target=defaults::requests-2.18.1-py36hfc65a8c_0)'), MatchSpec('libtool (target=defaults::libtool-2.4.6-hee670f0_0)'), MatchSpec('jsonschema (target=defaults::jsonschema-2.6.0-py36h553177d_0)'), MatchSpec('pyopenssl (target=defaults::pyopenssl-16.2.0-py36ha4e8928_0)'), MatchSpec('setuptools (target=defaults::setuptools-33.1.1-py36h9531ec0_0)'), MatchSpec('filelock (target=defaults::filelock-2.0.6-py36hecab0e9_0)'), MatchSpec('perl (target=defaults::perl-5.26.0-had2d7c4_0)'), MatchSpec('wheel (target=defaults::wheel-0.29.0-py36h53b1bae_0)'), MatchSpec('asn1crypto (target=defaults::asn1crypto-0.22.0-py36h1e05746_0)'), MatchSpec('vcversioner (target=defaults::vcversioner-2.16.0.0-py36hd7ef79c_0)'), MatchSpec('pycosat (target=defaults::pycosat-0.6.1-py36hd85b70a_0)'), MatchSpec('libffi (target=defaults::libffi-3.2.1-ha60f83d_3)'), MatchSpec('coverage (target=defaults::coverage-4.4.1-py36he22ce40_0)'), MatchSpec('pkg-config (target=defaults::pkg-config-0.29.2-h3348825_0)'), MatchSpec('conda-build (target=defaults::conda-build-3.0.8-py36h88d0164_0)'), MatchSpec('expat (target=defaults::expat-2.2.1-hb2eb8a5_1)'), MatchSpec('gdbm (target=defaults::gdbm-1.13-h1da15e7_0)'), MatchSpec('zlib (target=defaults::zlib-1.2.11-hcf0e70e_0)'), MatchSpec('six (target=defaults::six-1.10.0-py36h5d5a401_1)'), MatchSpec('pip (target=defaults::pip-9.0.1-py36h3c3718a_0)'), MatchSpec('pytest (target=defaults::pytest-3.1.3-py36hc61c924_0)'), MatchSpec('libgfortran_linux-64 (target=defaults::libgfortran_linux-64-7.1.0-hced3fcd_0)'), MatchSpec('bzip2 (target=defaults::bzip2-1.0.6-h6e5dee2_1)'), MatchSpec('readline (target=defaults::readline-7.0-ha53fe01_1)'), MatchSpec('yaml (target=defaults::yaml-0.1.6-h21378f5_0)'), MatchSpec('cryptography (target=defaults::cryptography-1.8.1-py36h4724394_0)'), MatchSpec('pytest-cov (target=defaults::pytest-cov-2.4.0-py36hd80946c_0)'), MatchSpec('xz (target=defaults::xz-5.2.3-h0585ff0_0)'), MatchSpec('chardet (target=defaults::chardet-3.0.2-py36h98ed7fb_2)'), MatchSpec('pysocks (target=defaults::pysocks-1.6.7-py36he05b2b2_1)'), MatchSpec('m4 (target=defaults::m4-1.4.18-h6a3c4c4_0)'), MatchSpec('automake (target=defaults::automake-1.15.1-pl526h5d1f53f_0)'), MatchSpec('autoconf (target=defaults::autoconf-2.69-pl526ha670186_5)'), MatchSpec('conda-env (target=defaults::conda-env-2.6.0-h36134e3_0)'), MatchSpec('pyyaml (target=defaults::pyyaml-3.12-py36h82f6ce8_1)'), MatchSpec('ca-certificates (target=defaults::ca-certificates-2017.01.19-h758a649_0)'), MatchSpec('glob2 (target=defaults::glob2-0.5-py36hcccd8a5_0)'), MatchSpec('pycparser (target=defaults::pycparser-2.17-py36h2510d72_0)'), MatchSpec('conda-verify (target=defaults::conda-verify-2.0.0-py36hb6ee407_0)'), MatchSpec('urllib3 (target=defaults::urllib3-1.21.1-py36hf62cdc1_1)'), MatchSpec('libgcc_linux-64 (target=defaults::libgcc_linux-64-7.1.0-h98fb546_0)'), MatchSpec('certifi (target=defaults::certifi-2017.4.17-py36h91f7e26_0)'), MatchSpec('ncurses (target=defaults::ncurses-6.0-he7fb7a6_0)'), MatchSpec('curl (target=defaults::curl-7.52.1-he4bd48f_1)'), MatchSpec('pyparsing (target=defaults::pyparsing-2.2.0-py36h614a43e_0)'), MatchSpec('ruamel_yaml (target=defaults::ruamel_yaml-0.11.14-py36h2509325_0)'), MatchSpec('cffi (target=defaults::cffi-1.10.0-py36hd280c6a_0)'), MatchSpec('py (target=defaults::py-1.4.33-py36h884c705_0)'), MatchSpec('sqlite (target=defaults::sqlite-3.16.2-h1ca8275_0)'), MatchSpec('markupsafe (target=defaults::markupsafe-1.0-py36h9e26fae_0)'), MatchSpec('cython (target=defaults::cython-0.25.2-py36hf2b3963_1)'), MatchSpec('packaging (target=defaults::packaging-16.8-py36hb3ac33a_0)'), MatchSpec('tk (target=defaults::tk-8.6.6-h7240f3b_6)'), MatchSpec('git (target=defaults::git-2.13.2-pl526hfe81c7d_0)')]
DEBUG conda.resolve:filter_group(399): python: pruned from 88 -> 87
DEBUG conda.resolve:filter_group(399): python: pruned from 87 -> 63
DEBUG conda.resolve:filter_group(399): six: pruned from 40 -> 21
DEBUG conda.resolve:filter_group(399): cython: pruned from 92 -> 61
DEBUG conda.resolve:filter_group(399): markupsafe: pruned from 15 -> 11
DEBUG conda.resolve:filter_group(399): py: pruned from 60 -> 38
DEBUG conda.resolve:filter_group(399): cffi: pruned from 74 -> 50
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 33 -> 23
DEBUG conda.resolve:filter_group(399): pyparsing: pruned from 21 -> 15
DEBUG conda.resolve:filter_group(399): certifi: pruned from 14 -> 12
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 77 -> 26
DEBUG conda.resolve:filter_group(399): cffi: pruned from 50 -> 25
DEBUG conda.resolve:filter_group(399): idna: pruned from 19 -> 17
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 201 -> 125
DEBUG conda.resolve:filter_group(399): six: pruned from 21 -> 19
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 32 -> 26
DEBUG conda.resolve:filter_group(399): python: pruned from 63 -> 50
DEBUG conda.resolve:filter_group(399): conda-verify: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): pyyaml: pruned from 22 -> 11
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 23 -> 16
DEBUG conda.resolve:filter_group(399): glob2: pruned from 5 -> 4
DEBUG conda.resolve:filter_group(399): conda-env: pruned from 66 -> 28
DEBUG conda.resolve:filter_group(399): chardet: pruned from 19 -> 15
DEBUG conda.resolve:filter_group(399): pytest-cov: pruned from 9 -> 7
DEBUG conda.resolve:filter_group(399): coverage: pruned from 27 -> 20
DEBUG conda.resolve:filter_group(399): pytest: pruned from 89 -> 47
DEBUG conda.resolve:filter_group(399): py: pruned from 38 -> 28
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 26 -> 19
DEBUG conda.resolve:filter_group(399): cffi: pruned from 25 -> 18
DEBUG conda.resolve:filter_group(399): idna: pruned from 17 -> 13
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 125 -> 77
DEBUG conda.resolve:filter_group(399): six: pruned from 19 -> 13
DEBUG conda.resolve:filter_group(399): pip: pruned from 107 -> 45
DEBUG conda.resolve:filter_group(399): conda-build: pruned from 296 -> 174
DEBUG conda.resolve:filter_group(399): conda: pruned from 400 -> 216
DEBUG conda.resolve:filter_group(399): pycosat: pruned from 19 -> 11
DEBUG conda.resolve:filter_group(399): vcversioner: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): asn1crypto: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): wheel: pruned from 20 -> 12
DEBUG conda.resolve:filter_group(399): filelock: pruned from 8 -> 6
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 26 -> 18
DEBUG conda.resolve:filter_group(399): jsonschema: pruned from 14 -> 10
DEBUG conda.resolve:filter_group(399): requests: pruned from 112 -> 48
DEBUG conda.resolve:filter_group(399): pkginfo: pruned from 9 -> 7
DEBUG conda.resolve:filter_group(399): beautifulsoup4: pruned from 20 -> 15
DEBUG conda.resolve:filter_group(399): jinja2: pruned from 47 -> 24
DEBUG conda.resolve:filter_group(399): python: pruned from 50 -> 8
DEBUG conda.resolve:filter_group(399): sqlite: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): tk: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): xz: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): conda: pruned from 216 -> 17
DEBUG conda.resolve:filter_group(399): conda-env: pruned from 28 -> 3
DEBUG conda.resolve:filter_group(399): pycosat: pruned from 11 -> 4
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 18 -> 4
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 19 -> 5
DEBUG conda.resolve:filter_group(399): cffi: pruned from 18 -> 4
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 16 -> 4
DEBUG conda.resolve:filter_group(399): idna: pruned from 13 -> 5
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 77 -> 4
DEBUG conda.resolve:filter_group(399): six: pruned from 13 -> 3
DEBUG conda.resolve:filter_group(399): requests: pruned from 48 -> 5
DEBUG conda.resolve:filter_group(399): ruamel_yaml: pruned from 12 -> 3
DEBUG conda.resolve:filter_group(399): packaging: pruned from 6 -> 3
DEBUG conda.resolve:filter_group(399): pyparsing: pruned from 15 -> 3
DEBUG conda.resolve:filter_group(399): cython: pruned from 61 -> 4
DEBUG conda.resolve:filter_group(399): markupsafe: pruned from 11 -> 3
DEBUG conda.resolve:filter_group(399): py: pruned from 28 -> 7
DEBUG conda.resolve:filter_group(399): certifi: pruned from 12 -> 3
DEBUG conda.resolve:filter_group(399): urllib3: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): pysocks: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): conda-verify: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): pyyaml: pruned from 11 -> 3
DEBUG conda.resolve:filter_group(399): glob2: pruned from 4 -> 2
DEBUG conda.resolve:filter_group(399): chardet: pruned from 15 -> 7
DEBUG conda.resolve:filter_group(399): pytest-cov: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): coverage: pruned from 20 -> 6
DEBUG conda.resolve:filter_group(399): pytest: pruned from 47 -> 7
DEBUG conda.resolve:filter_group(399): pip: pruned from 45 -> 3
DEBUG conda.resolve:filter_group(399): wheel: pruned from 12 -> 4
DEBUG conda.resolve:filter_group(399): conda-build: pruned from 174 -> 24
DEBUG conda.resolve:filter_group(399): beautifulsoup4: pruned from 15 -> 5
DEBUG conda.resolve:filter_group(399): filelock: pruned from 6 -> 2
DEBUG conda.resolve:filter_group(399): jinja2: pruned from 24 -> 6
DEBUG conda.resolve:filter_group(399): pkginfo: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): vcversioner: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): asn1crypto: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): jsonschema: pruned from 10 -> 4
.DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(885): Package removal metric: 0
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,15)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2657+15) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final peak objective: 0
DEBUG conda.resolve:solve(890): Initial package version metric: 0
DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(895): Track feature count: 0
DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(901): Package feature count: 0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,1)
TRACE conda.logic:LinearBound_(378): Eliminating 1/1 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2672+1) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(905): Initial package build metric: 0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,43)
TRACE conda.logic:LinearBound_(378): Eliminating 63/63 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2673+63) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(910): Dependency update count: 0
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,5)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2736+190) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(1,5)
TRACE conda.logic:minimize(535): Bisection attempt: (1,3), (2736+57) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(4,5)
TRACE conda.logic:minimize(535): Bisection attempt: (4,4), (2736+47) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(5,5)
TRACE conda.logic:minimize(535): Bisection attempt: (5,5), (2736+39) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(5,5)
DEBUG conda.logic:minimize(557): Final peak objective: 5
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (5,54)
TRACE conda.logic:minimize(535): Bisection attempt: (5,54), (2775+18959) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(5,54)
TRACE conda.logic:minimize(535): Bisection attempt: (5,29), (2775+11237) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(30,54)
TRACE conda.logic:minimize(535): Bisection attempt: (30,42), (2775+16196) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(43,54)
TRACE conda.logic:minimize(535): Bisection attempt: (43,48), (2775+17543) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(49,54)
TRACE conda.logic:minimize(535): Bisection attempt: (49,51), (2775+18020) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(52,54)
TRACE conda.logic:minimize(535): Bisection attempt: (52,53), (2775+18413) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(54,54)
TRACE conda.logic:minimize(535): Bisection attempt: (54,54), (2775+18517) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(54,54)
DEBUG conda.logic:minimize(557): Final sum objective: 54
DEBUG conda.logic:minimize(569): New peak objective: 5
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,0)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (21292+43) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final peak objective: 0
DEBUG conda.resolve:solve(916): Additional package version/build metrics: 54/0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,0)
TRACE conda.logic:LinearBound_(378): Eliminating 10/10 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,-1), (21335+0) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(0,0)
TRACE conda.logic:LinearBound_(378): Eliminating 10/10 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (21335+10) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(921): Weak dependency count: 0
DEBUG conda.resolve:solve(926): Looking for alternate solutions


Package plan for installation in environment /tmp/m:

The following packages will be UPDATED:

    conda: 4.3.22-py36h274531e_1 --> 4.3.22-py36h656d191_1
```
Here is the URL for the conda packages on c3i_test: https://anaconda.org/c3i_test/conda/files. As you can see, both conda packages involved in this incorrect upgrade are present.
> conda install ${CONDA_PREFIX}/pkgs/conda-4.3.22-py36h274531e_1.tar.bz2

That command is probably problematic in the flow above.  Installing an explicit tarball isn't bulletproof.  I'm guessing channel information is getting dropped in the process (channel information, obviously, isn't contained within the tarball itself).  If channel information is dropped, the channel becomes `<unknown>`, and any other channel will have higher priority.
OK, this is a good clue. I believe that if someone specifies a package cache tarball on the command line, `conda` _tries_ to match it back to its source. It's possible this resolution is not happening properly. @kalefranz I'd recommend checking out that code that attempts to resolve channel information about a tarball.

But I would _also_ like to ask that we do not build workflows of any kind that depend on reaching into the package cache and installing a tarball that is there. Nobody, and that includes us, should be depending on its contents. It's a cache, not a channel.
> What channel is assigned to packages that are pulled from the local channel? What does urls.txt say about them?

urls.txt should record the full `file:///path/to/conda/conda-bld/linux-64/package-1.2.3-45_6.tar.bz2` url, which, when passed as input to the `Channel()` object, will recognize the channel `canonical_name` as being `local`, as long as `file:///path/to/conda/conda-bld` is one of the paths configured/recognized as belonging to conda-build.

    python -c "from conda.base.context import context; print(context.conda_build_local_urls)"
> I suspect that it is because conda is finding the older version first in the pkgs folder.

There was one day a week or two in standup where I was warning about being scared we could have problems with conda 4.3 and conda-build 3.0 regarding the hashing scheme and the package cache (I got a lot of funny looks when I said that, so I probably didn't communicate my concerns in the most eloquent way.)  It's very likely this is related.

As I understand the situation @msarahan described at the top of the ticket, we have two packages in the package cache with nominally *identical* metadata, and the only difference is the timestamp on the package.  Conda hasn't ever had to deal with this situation before, prior to the build string hashing introduced in conda-build 3.

If this is the case, we can certainly fix this for conda 4.4.  Fix it thoroughly and completely, in all places where it could crop up and cause ugliness (there are possibly other situations, besides the one we're working through here).  I do still have some concerns though that conda 4.3 will never be able to handle the filename hashing completely and correctly (and certainly not any conda versions <= 4.3.23).
@mingwandroid As a test in your current workflow where you're running into your issue, can you (1) find a way to not install explicit tarballs directly, and (2) disable the build string hashing?  Let's see if we can at least work on isolating the source of the problem...
I only installed the explicit tarball so I could grep in the extracted index.json file to show you the timestamp values! The problem happens without having ever installed anything from an explicit tarball.

I cannot disable build string hashing. Can you fire up a Linux machine and figure it out there? I don't have time to look into this personally.
It strikes me that this isn't related to the hash string itself, only the fact that there are multiple packages of interest with identical filenames.
Ping @kalefranz, @csoja, this bug is preventing the new testing mechanism from working since @msarahan has implemented a workaround that deletes the very packages I am testing (`clean_pkg_cache`).
The pkgs folder is not treated as a channel at all so that can't be it. The tarballs there are given the priority assigned to the channels they came from.
(Though that leads to the question: what channel is assigned to packages that are pulled from the local channel? What does urls.txt say about them?)
I'd like to raise the priority of this bug (ping @csoja). It seems not to be related to local vs pkg-cache, or at least I have seen conda pick the older of two packages in the same channel (c3i_test). To reproduce this (on LInux, though Docker for mac would be workable):

```
pushd /tmp
wget -c https://repo.continuum.io/pkgs/misc/preview/Miniconda3-4.3.22.dev3-Linux-x86_64.sh
bash Miniconda3-4.3.22.dev3-Linux-x86_64.sh -bfp /tmp/m
. /tmp/m/bin/activate
# This is just so that the tar.bz2 gets extracted
conda install ${CONDA_PREFIX}/pkgs/conda-4.3.22-py36h274531e_1.tar.bz2
conda update -y conda
```

Here `conda update -y conda` should, AFAICT, do nothing, but instead:

```
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment /tmp/m:

The following packages will be UPDATED:

    conda: 4.3.22-py36h274531e_1 --> 4.3.22-py36h656d191_1
```

.. despite:

```
find ${CONDA_PREFIX}/pkgs -path "*/conda-4.3.22-*/info/index.json" -exec grep -H timestamp {} \;
```

.. giving:

```
/tmp/m/pkgs/conda-4.3.22-py36h274531e_1/info/index.json:  "timestamp": 1500831428589,
/tmp/m/pkgs/conda-4.3.22-py36h656d191_1/info/index.json:  "timestamp": 1499976843679,
```

Here `conda` has installed the older version.

I'll follow up with the debug output very soon.
```
conda update conda -v -v -v
DEBUG conda.cli.main:init_loggers(95): verbosity set to 3
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/patchelf-0.9-h12092aa_2.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/jinja2-2.9.5-py36hd692eab_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/idna-2.5-py36h317042d_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libiconv-1.14-h79488b8_5.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/beautifulsoup4-4.5.3-py36ha3e3e50_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pkginfo-1.4.1-py36ha36d807_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/openssl-1.0.2l-h09529b2_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libstdcxx_linux-64-7.1.0-hddd74c5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/requests-2.18.1-py36hfc65a8c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libtool-2.4.6-hee670f0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/jsonschema-2.6.0-py36h553177d_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-4.3.22-py36h274531e_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/python-3.6.2-hc1eee60_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyopenssl-16.2.0-py36ha4e8928_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/setuptools-33.1.1-py36h9531ec0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/filelock-2.0.6-py36hecab0e9_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/perl-5.26.0-had2d7c4_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/wheel-0.29.0-py36h53b1bae_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/asn1crypto-0.22.0-py36h1e05746_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/vcversioner-2.16.0.0-py36hd7ef79c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pycosat-0.6.1-py36hd85b70a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libffi-3.2.1-ha60f83d_3.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/coverage-4.4.1-py36he22ce40_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pkg-config-0.29.2-h3348825_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-build-3.0.8-py36h88d0164_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/expat-2.2.1-hb2eb8a5_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/gdbm-1.13-h1da15e7_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/zlib-1.2.11-hcf0e70e_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/six-1.10.0-py36h5d5a401_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pip-9.0.1-py36h3c3718a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pytest-3.1.3-py36hc61c924_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libgfortran_linux-64-7.1.0-hced3fcd_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/bzip2-1.0.6-h6e5dee2_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/readline-7.0-ha53fe01_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/yaml-0.1.6-h21378f5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cryptography-1.8.1-py36h4724394_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pytest-cov-2.4.0-py36hd80946c_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/xz-5.2.3-h0585ff0_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/chardet-3.0.2-py36h98ed7fb_2.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pysocks-1.6.7-py36he05b2b2_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/m4-1.4.18-h6a3c4c4_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/automake-1.15.1-pl526h5d1f53f_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/autoconf-2.69-pl526ha670186_5.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-env-2.6.0-h36134e3_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyyaml-3.12-py36h82f6ce8_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ca-certificates-2017.01.19-h758a649_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/glob2-0.5-py36hcccd8a5_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pycparser-2.17-py36h2510d72_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/conda-verify-2.0.0-py36hb6ee407_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/urllib3-1.21.1-py36hf62cdc1_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/libgcc_linux-64-7.1.0-h98fb546_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/certifi-2017.4.17-py36h91f7e26_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ncurses-6.0-he7fb7a6_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/curl-7.52.1-he4bd48f_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/pyparsing-2.2.0-py36h614a43e_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/ruamel_yaml-0.11.14-py36h2509325_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cffi-1.10.0-py36hd280c6a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/py-1.4.33-py36h884c705_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/sqlite-3.16.2-h1ca8275_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/markupsafe-1.0-py36h9e26fae_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/cython-0.25.2-py36hf2b3963_1.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/packaging-16.8-py36hb3ac33a_0.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/tk-8.6.6-h7240f3b_6.json
TRACE conda.core.linked_data:load_linked_data(34): loading linked data for /tmp/m/conda-meta/git-2.13.2-pl526hfe81c7d_0.json
DEBUG conda.core.index:fetch_index(106): channel_urls=OrderedDict([('https://conda.anaconda.org/c3i_test/linux-64', ('defaults', 0)), ('https://conda.anaconda.org/c3i_test/noarch', ('defaults', 0)), ('https://repo.continuum.io/pkgs/free/linux-64', ('https://repo.continuum.io/pkgs/free', 2)), ('https://repo.continuum.io/pkgs/free/noarch', ('https://repo.continuum.io/pkgs/free', 2)), ('https://repo.continuum.io/pkgs/r/linux-64', ('https://repo.continuum.io/pkgs/r', 3)), ('https://repo.continuum.io/pkgs/r/noarch', ('https://repo.continuum.io/pkgs/r', 3)), ('https://repo.continuum.io/pkgs/pro/linux-64', ('https://repo.continuum.io/pkgs/pro', 4)), ('https://repo.continuum.io/pkgs/pro/noarch', ('https://repo.continuum.io/pkgs/pro', 4))])
Fetching package metadata ...DEBUG urllib3.util.retry:from_int(200): Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /tmp/m/pkgs/urls.txt
TRACE conda.gateways.disk.test:file_path_is_writable(23): checking path is writable /home/ray/.conda/pkgs/urls.txt
DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://conda.anaconda.org/c3i_test/linux-64 at /tmp/m/pkgs/cache/b416b7b7.json
DEBUG conda.connection:add_binstar_token(144): Adding anaconda token for url <https://conda.anaconda.org/c3i_test/linux-64/repodata.json>
DEBUG urllib3.connectionpool:_new_conn(818): Starting new HTTPS connection (1): conda.anaconda.org
DEBUG urllib3.connectionpool:_make_request(395): https://conda.anaconda.org:443 "GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/linux-64/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/linux-64/repodata.json HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> If-Modified-Since: Tue, 25 Jul 2017 12:51:26 GMT

<<HTTPS 304 NOT MODIFIED
< CF-RAY: 3846724cedb669f5-LHR
< Date: Wed, 26 Jul 2017 09:49:00 GMT
< Server: cloudflare-nginx
< Set-Cookie: __cfduid=d78c5fd31985d6fb661b882f416ab46421501062540; expires=Thu, 26-Jul-18 09:49:00 GMT; path=/; domain=.anaconda.org; HttpOnly
< Strict-Transport-Security: max-age=31536000
< Connection: keep-alive
< Elapsed: 00:05.558808

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://conda.anaconda.org/c3i_test/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/b416b7b7.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/b416b7b7.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://conda.anaconda.org/c3i_test/noarch at /tmp/m/pkgs/cache/917d14b1.json
DEBUG conda.connection:add_binstar_token(144): Adding anaconda token for url <https://conda.anaconda.org/c3i_test/noarch/repodata.json>
DEBUG urllib3.connectionpool:_make_request(395): https://conda.anaconda.org:443 "GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/noarch/repodata.json HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /t/rd-22f1fd0d-0772-4bfd-b93a-e7159e278b97/c3i_test/noarch/repodata.json HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: gzip, deflate, compress, identity
> Connection: keep-alive
> Content-Type: application/json
> Cookie: __cfduid=d78c5fd31985d6fb661b882f416ab46421501062540
> If-Modified-Since: Tue, 25 Jul 2017 12:51:26 GMT

<<HTTPS 304 NOT MODIFIED
< CF-RAY: 3846724fcef369f5-LHR
< Date: Wed, 26 Jul 2017 09:49:01 GMT
< Server: cloudflare-nginx
< Strict-Transport-Security: max-age=31536000
< Connection: keep-alive
< Elapsed: 00:00.376864

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://conda.anaconda.org/c3i_test/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/917d14b1.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/917d14b1.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/free/linux-64 at /tmp/m/pkgs/cache/db552c1e.json
DEBUG urllib3.connectionpool:_new_conn(818): Starting new HTTPS connection (1): repo.continuum.io
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/free/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/free/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> If-Modified-Since: Tue, 25 Jul 2017 21:38:30 GMT
> If-None-Match: "528db52103850ab1ea421877ce0622b5"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672720cfd1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "528db52103850ab1ea421877ce0622b5"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 21:38:30 GMT
< Server: cloudflare-nginx
< Set-Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546; expires=Thu, 26-Jul-18 09:49:06 GMT; path=/; domain=.continuum.io; HttpOnly
< Vary: Accept-Encoding
< x-amz-id-2: HrQ88aHFkfAQvU3FMBfq3AZmIcGDxTO46nbN5kdQJHaSEWCyo4K+aHvL5gMxOi8qIWJmZF33+L4=
< x-amz-request-id: 6C00A32855FF2A5B
< x-amz-version-id: v88OrIeB9hB3TbY6DI1SeBnNxxjoz8It
< Connection: keep-alive
< Elapsed: 00:05.120355

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/free/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/db552c1e.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/db552c1e.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/free/noarch at /tmp/m/pkgs/cache/9ca791dd.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/free/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/free/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:04:09 GMT
> If-None-Match: "e5e41f3b07a5ae63250ff2c9a1a99f3b"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672733da31377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "e5e41f3b07a5ae63250ff2c9a1a99f3b"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:04:09 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: FDLYjD2Bc7q7L0boRmbiNQDanHzsfgBen/atQMaPbQcb4b2jqe6SWGSqeD+iQnVioaeFV82zbJE=
< x-amz-request-id: 9C3CC975BFDD6619
< x-amz-version-id: 9Zqwri8g_5defKke_hvbGibCznu18KQb
< Connection: keep-alive
< Elapsed: 00:00.018662

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/free/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/9ca791dd.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/9ca791dd.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/r/linux-64 at /tmp/m/pkgs/cache/6bfb14bd.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/r/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/r/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:05:32 GMT
> If-None-Match: "b7bc1b9927fa701bad6c8139397b758c"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672735dbc1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "b7bc1b9927fa701bad6c8139397b758c"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:05:32 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: z+3pUl3L018WMeobXtcBuPaE6jMe0c544bzG5K1C8L8Bo33MR1QmLWjXcsFvnBN0K/uJCViAx6c=
< x-amz-request-id: 630143C21248F89A
< x-amz-version-id: rcxLjX4hLQ82_pOqxYLqW3tjmKKrd8ce
< Connection: keep-alive
< Elapsed: 00:00.032432

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/r/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/6bfb14bd.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/6bfb14bd.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/r/noarch at /tmp/m/pkgs/cache/716b88c0.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/r/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/r/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 31 Jan 2017 05:50:11 GMT
> If-None-Match: "e8c60de6ccbc390c49c0a91035a53c64"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 38467273bdec1377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "e8c60de6ccbc390c49c0a91035a53c64"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 31 Jan 2017 05:50:11 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: LYfFs5RzEnhgAm4xzQx8ehkxG75ZW6bvbqrwfHIWiZ9t4wxc0YWXIYuHyM0vwo39yO+SwmmzA6g=
< x-amz-request-id: 95938D78B0ACA670
< x-amz-version-id: q9tvk8Y4cFZ5bm2fRh8sN6opdl7qs.78
< Connection: keep-alive
< Elapsed: 00:00.019828

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/r/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/716b88c0.json
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/pro/linux-64 at /tmp/m/pkgs/cache/8db5e652.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/pro/linux-64/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/pro/linux-64/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 21:39:45 GMT
> If-None-Match: "041674100c301c307f0b99686bb704fd"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 38467273ee001377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "041674100c301c307f0b99686bb704fd"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 21:39:45 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: 8BOV1Utn0yTEqRCCg7r2+rq/CGaJM4Y9pP3IIbiEFnBqUdXvgPxwhdMFmgJL98QY7E59E+xnGQ8=
< x-amz-request-id: DDBE61B3FC7EF8FF
< x-amz-version-id: O1CUvUpbSVOq9XAXTcktbpj_eoM7XcC2
< Connection: keep-alive
< Elapsed: 00:00.037129

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/pro/linux-64'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/8db5e652.json
DEBUG conda.core.repodata:read_pickled_repodata(339): found pickle file /tmp/m/pkgs/cache/8db5e652.q
.DEBUG conda.core.repodata:fetch_repodata(454): Locally invalidating cached repodata for https://repo.continuum.io/pkgs/pro/noarch at /tmp/m/pkgs/cache/08159f17.json
DEBUG urllib3.connectionpool:_make_request(395): https://repo.continuum.io:443 "GET /pkgs/pro/noarch/repodata.json.bz2 HTTP/1.1" 304 0
DEBUG conda.core.repodata:fetch_repodata_remote_request(140): 
>>GET /pkgs/pro/noarch/repodata.json.bz2 HTTPS
> User-Agent: conda/4.3.22 requests/2.18.1 CPython/3.6.2 Linux/2.6.32-696.3.2.el6.x86_64 CentOS/6.9 glibc/2.12
> Accept: */*
> Accept-Encoding: identity
> Connection: keep-alive
> Cookie: __cfduid=d7c56bae468d0992eb9315cb5b744a8431501062546
> If-Modified-Since: Tue, 25 Jul 2017 13:05:32 GMT
> If-None-Match: "a03a8ce02144dee86add4a372c6c86b7"

<<HTTPS 304 Not Modified
< Cache-Control: public, max-age=30
< CF-Cache-Status: HIT
< CF-RAY: 384672742e281377-LHR
< Date: Wed, 26 Jul 2017 09:49:06 GMT
< ETag: "a03a8ce02144dee86add4a372c6c86b7"
< Expires: Wed, 26 Jul 2017 09:49:36 GMT
< Last-Modified: Tue, 25 Jul 2017 13:05:32 GMT
< Server: cloudflare-nginx
< Vary: Accept-Encoding
< x-amz-id-2: maHaUBDzZNM3YTk5Ql5nZrBctDRj3nbHrku0aXFhyjk0+At6uXaeKPfCa3FbxwmfTg0e64sGdVE=
< x-amz-request-id: 77E33E5835086704
< x-amz-version-id: xUxq8fc5dIfxN8yyTTMILlG.G08OZ1vc
< Connection: keep-alive
< Elapsed: 00:00.021581

DEBUG conda.core.repodata:fetch_repodata(462): 304 NOT MODIFIED for 'https://repo.continuum.io/pkgs/pro/noarch'. Updating mtime and loading from disk
TRACE conda.gateways.disk.update:touch(62): touching path /tmp/m/pkgs/cache/08159f17.json
.
DEBUG conda.plan:add_defaults_to_specs(371): H0 specs=[MatchSpec('conda')]
DEBUG conda.plan:add_defaults_to_specs(386): H2 python True
DEBUG conda.plan:add_defaults_to_specs(402): H3 python
DEBUG conda.plan:add_defaults_to_specs(386): H2 lua False
DEBUG conda.plan:add_defaults_to_specs(391): H2A lua
DEBUG conda.plan:add_defaults_to_specs(417): HF specs=[MatchSpec('conda'), 'python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)']
DEBUG conda.plan:augment_specs(714): Pinned specs=()
DEBUG conda.resolve:install_specs(790): Checking satisfiability of current install
DEBUG conda.resolve:bad_installed(740): Checking if the current environment is consistent
Solving package specifications: DEBUG conda.resolve:solve(845): Solving for [MatchSpec('conda'), MatchSpec('python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)'), MatchSpec('patchelf (target=defaults::patchelf-0.9-h12092aa_2)'), MatchSpec('jinja2 (target=defaults::jinja2-2.9.5-py36hd692eab_0)'), MatchSpec('idna (target=defaults::idna-2.5-py36h317042d_0)'), MatchSpec('libiconv (target=defaults::libiconv-1.14-h79488b8_5)'), MatchSpec('beautifulsoup4 (target=defaults::beautifulsoup4-4.5.3-py36ha3e3e50_0)'), MatchSpec('pkginfo (target=defaults::pkginfo-1.4.1-py36ha36d807_0)'), MatchSpec('openssl (target=defaults::openssl-1.0.2l-h09529b2_0)'), MatchSpec('libstdcxx_linux-64 (target=defaults::libstdcxx_linux-64-7.1.0-hddd74c5_0)'), MatchSpec('requests (target=defaults::requests-2.18.1-py36hfc65a8c_0)'), MatchSpec('libtool (target=defaults::libtool-2.4.6-hee670f0_0)'), MatchSpec('jsonschema (target=defaults::jsonschema-2.6.0-py36h553177d_0)'), MatchSpec('pyopenssl (target=defaults::pyopenssl-16.2.0-py36ha4e8928_0)'), MatchSpec('setuptools (target=defaults::setuptools-33.1.1-py36h9531ec0_0)'), MatchSpec('filelock (target=defaults::filelock-2.0.6-py36hecab0e9_0)'), MatchSpec('perl (target=defaults::perl-5.26.0-had2d7c4_0)'), MatchSpec('wheel (target=defaults::wheel-0.29.0-py36h53b1bae_0)'), MatchSpec('asn1crypto (target=defaults::asn1crypto-0.22.0-py36h1e05746_0)'), MatchSpec('vcversioner (target=defaults::vcversioner-2.16.0.0-py36hd7ef79c_0)'), MatchSpec('pycosat (target=defaults::pycosat-0.6.1-py36hd85b70a_0)'), MatchSpec('libffi (target=defaults::libffi-3.2.1-ha60f83d_3)'), MatchSpec('coverage (target=defaults::coverage-4.4.1-py36he22ce40_0)'), MatchSpec('pkg-config (target=defaults::pkg-config-0.29.2-h3348825_0)'), MatchSpec('conda-build (target=defaults::conda-build-3.0.8-py36h88d0164_0)'), MatchSpec('expat (target=defaults::expat-2.2.1-hb2eb8a5_1)'), MatchSpec('gdbm (target=defaults::gdbm-1.13-h1da15e7_0)'), MatchSpec('zlib (target=defaults::zlib-1.2.11-hcf0e70e_0)'), MatchSpec('six (target=defaults::six-1.10.0-py36h5d5a401_1)'), MatchSpec('pip (target=defaults::pip-9.0.1-py36h3c3718a_0)'), MatchSpec('pytest (target=defaults::pytest-3.1.3-py36hc61c924_0)'), MatchSpec('libgfortran_linux-64 (target=defaults::libgfortran_linux-64-7.1.0-hced3fcd_0)'), MatchSpec('bzip2 (target=defaults::bzip2-1.0.6-h6e5dee2_1)'), MatchSpec('readline (target=defaults::readline-7.0-ha53fe01_1)'), MatchSpec('yaml (target=defaults::yaml-0.1.6-h21378f5_0)'), MatchSpec('cryptography (target=defaults::cryptography-1.8.1-py36h4724394_0)'), MatchSpec('pytest-cov (target=defaults::pytest-cov-2.4.0-py36hd80946c_0)'), MatchSpec('xz (target=defaults::xz-5.2.3-h0585ff0_0)'), MatchSpec('chardet (target=defaults::chardet-3.0.2-py36h98ed7fb_2)'), MatchSpec('pysocks (target=defaults::pysocks-1.6.7-py36he05b2b2_1)'), MatchSpec('m4 (target=defaults::m4-1.4.18-h6a3c4c4_0)'), MatchSpec('automake (target=defaults::automake-1.15.1-pl526h5d1f53f_0)'), MatchSpec('autoconf (target=defaults::autoconf-2.69-pl526ha670186_5)'), MatchSpec('conda-env (target=defaults::conda-env-2.6.0-h36134e3_0)'), MatchSpec('pyyaml (target=defaults::pyyaml-3.12-py36h82f6ce8_1)'), MatchSpec('ca-certificates (target=defaults::ca-certificates-2017.01.19-h758a649_0)'), MatchSpec('glob2 (target=defaults::glob2-0.5-py36hcccd8a5_0)'), MatchSpec('pycparser (target=defaults::pycparser-2.17-py36h2510d72_0)'), MatchSpec('conda-verify (target=defaults::conda-verify-2.0.0-py36hb6ee407_0)'), MatchSpec('urllib3 (target=defaults::urllib3-1.21.1-py36hf62cdc1_1)'), MatchSpec('libgcc_linux-64 (target=defaults::libgcc_linux-64-7.1.0-h98fb546_0)'), MatchSpec('certifi (target=defaults::certifi-2017.4.17-py36h91f7e26_0)'), MatchSpec('ncurses (target=defaults::ncurses-6.0-he7fb7a6_0)'), MatchSpec('curl (target=defaults::curl-7.52.1-he4bd48f_1)'), MatchSpec('pyparsing (target=defaults::pyparsing-2.2.0-py36h614a43e_0)'), MatchSpec('ruamel_yaml (target=defaults::ruamel_yaml-0.11.14-py36h2509325_0)'), MatchSpec('cffi (target=defaults::cffi-1.10.0-py36hd280c6a_0)'), MatchSpec('py (target=defaults::py-1.4.33-py36h884c705_0)'), MatchSpec('sqlite (target=defaults::sqlite-3.16.2-h1ca8275_0)'), MatchSpec('markupsafe (target=defaults::markupsafe-1.0-py36h9e26fae_0)'), MatchSpec('cython (target=defaults::cython-0.25.2-py36hf2b3963_1)'), MatchSpec('packaging (target=defaults::packaging-16.8-py36hb3ac33a_0)'), MatchSpec('tk (target=defaults::tk-8.6.6-h7240f3b_6)'), MatchSpec('git (target=defaults::git-2.13.2-pl526hfe81c7d_0)')]
DEBUG conda.resolve:get_reduced_index(374): Retrieving packages for: [MatchSpec('conda'), MatchSpec('python 3.6* (target=defaults::python-3.6.2-hc1eee60_0)'), MatchSpec('patchelf (target=defaults::patchelf-0.9-h12092aa_2)'), MatchSpec('jinja2 (target=defaults::jinja2-2.9.5-py36hd692eab_0)'), MatchSpec('idna (target=defaults::idna-2.5-py36h317042d_0)'), MatchSpec('libiconv (target=defaults::libiconv-1.14-h79488b8_5)'), MatchSpec('beautifulsoup4 (target=defaults::beautifulsoup4-4.5.3-py36ha3e3e50_0)'), MatchSpec('pkginfo (target=defaults::pkginfo-1.4.1-py36ha36d807_0)'), MatchSpec('openssl (target=defaults::openssl-1.0.2l-h09529b2_0)'), MatchSpec('libstdcxx_linux-64 (target=defaults::libstdcxx_linux-64-7.1.0-hddd74c5_0)'), MatchSpec('requests (target=defaults::requests-2.18.1-py36hfc65a8c_0)'), MatchSpec('libtool (target=defaults::libtool-2.4.6-hee670f0_0)'), MatchSpec('jsonschema (target=defaults::jsonschema-2.6.0-py36h553177d_0)'), MatchSpec('pyopenssl (target=defaults::pyopenssl-16.2.0-py36ha4e8928_0)'), MatchSpec('setuptools (target=defaults::setuptools-33.1.1-py36h9531ec0_0)'), MatchSpec('filelock (target=defaults::filelock-2.0.6-py36hecab0e9_0)'), MatchSpec('perl (target=defaults::perl-5.26.0-had2d7c4_0)'), MatchSpec('wheel (target=defaults::wheel-0.29.0-py36h53b1bae_0)'), MatchSpec('asn1crypto (target=defaults::asn1crypto-0.22.0-py36h1e05746_0)'), MatchSpec('vcversioner (target=defaults::vcversioner-2.16.0.0-py36hd7ef79c_0)'), MatchSpec('pycosat (target=defaults::pycosat-0.6.1-py36hd85b70a_0)'), MatchSpec('libffi (target=defaults::libffi-3.2.1-ha60f83d_3)'), MatchSpec('coverage (target=defaults::coverage-4.4.1-py36he22ce40_0)'), MatchSpec('pkg-config (target=defaults::pkg-config-0.29.2-h3348825_0)'), MatchSpec('conda-build (target=defaults::conda-build-3.0.8-py36h88d0164_0)'), MatchSpec('expat (target=defaults::expat-2.2.1-hb2eb8a5_1)'), MatchSpec('gdbm (target=defaults::gdbm-1.13-h1da15e7_0)'), MatchSpec('zlib (target=defaults::zlib-1.2.11-hcf0e70e_0)'), MatchSpec('six (target=defaults::six-1.10.0-py36h5d5a401_1)'), MatchSpec('pip (target=defaults::pip-9.0.1-py36h3c3718a_0)'), MatchSpec('pytest (target=defaults::pytest-3.1.3-py36hc61c924_0)'), MatchSpec('libgfortran_linux-64 (target=defaults::libgfortran_linux-64-7.1.0-hced3fcd_0)'), MatchSpec('bzip2 (target=defaults::bzip2-1.0.6-h6e5dee2_1)'), MatchSpec('readline (target=defaults::readline-7.0-ha53fe01_1)'), MatchSpec('yaml (target=defaults::yaml-0.1.6-h21378f5_0)'), MatchSpec('cryptography (target=defaults::cryptography-1.8.1-py36h4724394_0)'), MatchSpec('pytest-cov (target=defaults::pytest-cov-2.4.0-py36hd80946c_0)'), MatchSpec('xz (target=defaults::xz-5.2.3-h0585ff0_0)'), MatchSpec('chardet (target=defaults::chardet-3.0.2-py36h98ed7fb_2)'), MatchSpec('pysocks (target=defaults::pysocks-1.6.7-py36he05b2b2_1)'), MatchSpec('m4 (target=defaults::m4-1.4.18-h6a3c4c4_0)'), MatchSpec('automake (target=defaults::automake-1.15.1-pl526h5d1f53f_0)'), MatchSpec('autoconf (target=defaults::autoconf-2.69-pl526ha670186_5)'), MatchSpec('conda-env (target=defaults::conda-env-2.6.0-h36134e3_0)'), MatchSpec('pyyaml (target=defaults::pyyaml-3.12-py36h82f6ce8_1)'), MatchSpec('ca-certificates (target=defaults::ca-certificates-2017.01.19-h758a649_0)'), MatchSpec('glob2 (target=defaults::glob2-0.5-py36hcccd8a5_0)'), MatchSpec('pycparser (target=defaults::pycparser-2.17-py36h2510d72_0)'), MatchSpec('conda-verify (target=defaults::conda-verify-2.0.0-py36hb6ee407_0)'), MatchSpec('urllib3 (target=defaults::urllib3-1.21.1-py36hf62cdc1_1)'), MatchSpec('libgcc_linux-64 (target=defaults::libgcc_linux-64-7.1.0-h98fb546_0)'), MatchSpec('certifi (target=defaults::certifi-2017.4.17-py36h91f7e26_0)'), MatchSpec('ncurses (target=defaults::ncurses-6.0-he7fb7a6_0)'), MatchSpec('curl (target=defaults::curl-7.52.1-he4bd48f_1)'), MatchSpec('pyparsing (target=defaults::pyparsing-2.2.0-py36h614a43e_0)'), MatchSpec('ruamel_yaml (target=defaults::ruamel_yaml-0.11.14-py36h2509325_0)'), MatchSpec('cffi (target=defaults::cffi-1.10.0-py36hd280c6a_0)'), MatchSpec('py (target=defaults::py-1.4.33-py36h884c705_0)'), MatchSpec('sqlite (target=defaults::sqlite-3.16.2-h1ca8275_0)'), MatchSpec('markupsafe (target=defaults::markupsafe-1.0-py36h9e26fae_0)'), MatchSpec('cython (target=defaults::cython-0.25.2-py36hf2b3963_1)'), MatchSpec('packaging (target=defaults::packaging-16.8-py36hb3ac33a_0)'), MatchSpec('tk (target=defaults::tk-8.6.6-h7240f3b_6)'), MatchSpec('git (target=defaults::git-2.13.2-pl526hfe81c7d_0)')]
DEBUG conda.resolve:filter_group(399): python: pruned from 88 -> 87
DEBUG conda.resolve:filter_group(399): python: pruned from 87 -> 63
DEBUG conda.resolve:filter_group(399): six: pruned from 40 -> 21
DEBUG conda.resolve:filter_group(399): cython: pruned from 92 -> 61
DEBUG conda.resolve:filter_group(399): markupsafe: pruned from 15 -> 11
DEBUG conda.resolve:filter_group(399): py: pruned from 60 -> 38
DEBUG conda.resolve:filter_group(399): cffi: pruned from 74 -> 50
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 33 -> 23
DEBUG conda.resolve:filter_group(399): pyparsing: pruned from 21 -> 15
DEBUG conda.resolve:filter_group(399): certifi: pruned from 14 -> 12
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 77 -> 26
DEBUG conda.resolve:filter_group(399): cffi: pruned from 50 -> 25
DEBUG conda.resolve:filter_group(399): idna: pruned from 19 -> 17
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 201 -> 125
DEBUG conda.resolve:filter_group(399): six: pruned from 21 -> 19
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 32 -> 26
DEBUG conda.resolve:filter_group(399): python: pruned from 63 -> 50
DEBUG conda.resolve:filter_group(399): conda-verify: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): pyyaml: pruned from 22 -> 11
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 23 -> 16
DEBUG conda.resolve:filter_group(399): glob2: pruned from 5 -> 4
DEBUG conda.resolve:filter_group(399): conda-env: pruned from 66 -> 28
DEBUG conda.resolve:filter_group(399): chardet: pruned from 19 -> 15
DEBUG conda.resolve:filter_group(399): pytest-cov: pruned from 9 -> 7
DEBUG conda.resolve:filter_group(399): coverage: pruned from 27 -> 20
DEBUG conda.resolve:filter_group(399): pytest: pruned from 89 -> 47
DEBUG conda.resolve:filter_group(399): py: pruned from 38 -> 28
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 26 -> 19
DEBUG conda.resolve:filter_group(399): cffi: pruned from 25 -> 18
DEBUG conda.resolve:filter_group(399): idna: pruned from 17 -> 13
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 125 -> 77
DEBUG conda.resolve:filter_group(399): six: pruned from 19 -> 13
DEBUG conda.resolve:filter_group(399): pip: pruned from 107 -> 45
DEBUG conda.resolve:filter_group(399): conda-build: pruned from 296 -> 174
DEBUG conda.resolve:filter_group(399): conda: pruned from 400 -> 216
DEBUG conda.resolve:filter_group(399): pycosat: pruned from 19 -> 11
DEBUG conda.resolve:filter_group(399): vcversioner: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): asn1crypto: pruned from 7 -> 6
DEBUG conda.resolve:filter_group(399): wheel: pruned from 20 -> 12
DEBUG conda.resolve:filter_group(399): filelock: pruned from 8 -> 6
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 26 -> 18
DEBUG conda.resolve:filter_group(399): jsonschema: pruned from 14 -> 10
DEBUG conda.resolve:filter_group(399): requests: pruned from 112 -> 48
DEBUG conda.resolve:filter_group(399): pkginfo: pruned from 9 -> 7
DEBUG conda.resolve:filter_group(399): beautifulsoup4: pruned from 20 -> 15
DEBUG conda.resolve:filter_group(399): jinja2: pruned from 47 -> 24
DEBUG conda.resolve:filter_group(399): python: pruned from 50 -> 8
DEBUG conda.resolve:filter_group(399): sqlite: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): tk: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): xz: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): conda: pruned from 216 -> 17
DEBUG conda.resolve:filter_group(399): conda-env: pruned from 28 -> 3
DEBUG conda.resolve:filter_group(399): pycosat: pruned from 11 -> 4
DEBUG conda.resolve:filter_group(399): pyopenssl: pruned from 18 -> 4
DEBUG conda.resolve:filter_group(399): cryptography: pruned from 19 -> 5
DEBUG conda.resolve:filter_group(399): cffi: pruned from 18 -> 4
DEBUG conda.resolve:filter_group(399): pycparser: pruned from 16 -> 4
DEBUG conda.resolve:filter_group(399): idna: pruned from 13 -> 5
DEBUG conda.resolve:filter_group(399): setuptools: pruned from 77 -> 4
DEBUG conda.resolve:filter_group(399): six: pruned from 13 -> 3
DEBUG conda.resolve:filter_group(399): requests: pruned from 48 -> 5
DEBUG conda.resolve:filter_group(399): ruamel_yaml: pruned from 12 -> 3
DEBUG conda.resolve:filter_group(399): packaging: pruned from 6 -> 3
DEBUG conda.resolve:filter_group(399): pyparsing: pruned from 15 -> 3
DEBUG conda.resolve:filter_group(399): cython: pruned from 61 -> 4
DEBUG conda.resolve:filter_group(399): markupsafe: pruned from 11 -> 3
DEBUG conda.resolve:filter_group(399): py: pruned from 28 -> 7
DEBUG conda.resolve:filter_group(399): certifi: pruned from 12 -> 3
DEBUG conda.resolve:filter_group(399): urllib3: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): pysocks: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): conda-verify: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): pyyaml: pruned from 11 -> 3
DEBUG conda.resolve:filter_group(399): glob2: pruned from 4 -> 2
DEBUG conda.resolve:filter_group(399): chardet: pruned from 15 -> 7
DEBUG conda.resolve:filter_group(399): pytest-cov: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): coverage: pruned from 20 -> 6
DEBUG conda.resolve:filter_group(399): pytest: pruned from 47 -> 7
DEBUG conda.resolve:filter_group(399): pip: pruned from 45 -> 3
DEBUG conda.resolve:filter_group(399): wheel: pruned from 12 -> 4
DEBUG conda.resolve:filter_group(399): conda-build: pruned from 174 -> 24
DEBUG conda.resolve:filter_group(399): beautifulsoup4: pruned from 15 -> 5
DEBUG conda.resolve:filter_group(399): filelock: pruned from 6 -> 2
DEBUG conda.resolve:filter_group(399): jinja2: pruned from 24 -> 6
DEBUG conda.resolve:filter_group(399): pkginfo: pruned from 7 -> 3
DEBUG conda.resolve:filter_group(399): vcversioner: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): asn1crypto: pruned from 6 -> 4
DEBUG conda.resolve:filter_group(399): jsonschema: pruned from 10 -> 4
.DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(885): Package removal metric: 0
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,15)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2657+15) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final peak objective: 0
DEBUG conda.resolve:solve(890): Initial package version metric: 0
DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(895): Track feature count: 0
DEBUG conda.logic:minimize(485): Empty objective, trivial solution
DEBUG conda.resolve:solve(901): Package feature count: 0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,1)
TRACE conda.logic:LinearBound_(378): Eliminating 1/1 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2672+1) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(905): Initial package build metric: 0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,43)
TRACE conda.logic:LinearBound_(378): Eliminating 63/63 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2673+63) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(910): Dependency update count: 0
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,5)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (2736+190) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(1,5)
TRACE conda.logic:minimize(535): Bisection attempt: (1,3), (2736+57) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(4,5)
TRACE conda.logic:minimize(535): Bisection attempt: (4,4), (2736+47) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(5,5)
TRACE conda.logic:minimize(535): Bisection attempt: (5,5), (2736+39) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(5,5)
DEBUG conda.logic:minimize(557): Final peak objective: 5
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (5,54)
TRACE conda.logic:minimize(535): Bisection attempt: (5,54), (2775+18959) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(5,54)
TRACE conda.logic:minimize(535): Bisection attempt: (5,29), (2775+11237) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(30,54)
TRACE conda.logic:minimize(535): Bisection attempt: (30,42), (2775+16196) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(43,54)
TRACE conda.logic:minimize(535): Bisection attempt: (43,48), (2775+17543) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(49,54)
TRACE conda.logic:minimize(535): Bisection attempt: (49,51), (2775+18020) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(52,54)
TRACE conda.logic:minimize(535): Bisection attempt: (52,53), (2775+18413) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(54,54)
TRACE conda.logic:minimize(535): Bisection attempt: (54,54), (2775+18517) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(54,54)
DEBUG conda.logic:minimize(557): Final sum objective: 54
DEBUG conda.logic:minimize(569): New peak objective: 5
TRACE conda.logic:minimize(504): Beginning peak minimization
TRACE conda.logic:minimize(521): Initial range (0,0)
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (21292+43) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final peak objective: 0
DEBUG conda.resolve:solve(916): Additional package version/build metrics: 54/0
TRACE conda.logic:minimize(507): Beginning sum minimization
TRACE conda.logic:minimize(521): Initial range (0,0)
TRACE conda.logic:LinearBound_(378): Eliminating 10/10 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,-1), (21335+0) clauses
TRACE conda.logic:minimize(539): Bisection failure, new range=(0,0)
TRACE conda.logic:LinearBound_(378): Eliminating 10/10 terms for bound violation
TRACE conda.logic:minimize(535): Bisection attempt: (0,0), (21335+10) clauses
TRACE conda.logic:minimize(548): Bisection success, new range=(0,0)
DEBUG conda.logic:minimize(557): Final sum objective: 0
DEBUG conda.resolve:solve(921): Weak dependency count: 0
DEBUG conda.resolve:solve(926): Looking for alternate solutions


Package plan for installation in environment /tmp/m:

The following packages will be UPDATED:

    conda: 4.3.22-py36h274531e_1 --> 4.3.22-py36h656d191_1
```
Here is the URL for the conda packages on c3i_test: https://anaconda.org/c3i_test/conda/files. As you can see, both conda packages involved in this incorrect upgrade are present.
> conda install ${CONDA_PREFIX}/pkgs/conda-4.3.22-py36h274531e_1.tar.bz2

That command is probably problematic in the flow above.  Installing an explicit tarball isn't bulletproof.  I'm guessing channel information is getting dropped in the process (channel information, obviously, isn't contained within the tarball itself).  If channel information is dropped, the channel becomes `<unknown>`, and any other channel will have higher priority.
OK, this is a good clue. I believe that if someone specifies a package cache tarball on the command line, `conda` _tries_ to match it back to its source. It's possible this resolution is not happening properly. @kalefranz I'd recommend checking out that code that attempts to resolve channel information about a tarball.

But I would _also_ like to ask that we do not build workflows of any kind that depend on reaching into the package cache and installing a tarball that is there. Nobody, and that includes us, should be depending on its contents. It's a cache, not a channel.
> What channel is assigned to packages that are pulled from the local channel? What does urls.txt say about them?

urls.txt should record the full `file:///path/to/conda/conda-bld/linux-64/package-1.2.3-45_6.tar.bz2` url, which, when passed as input to the `Channel()` object, will recognize the channel `canonical_name` as being `local`, as long as `file:///path/to/conda/conda-bld` is one of the paths configured/recognized as belonging to conda-build.

    python -c "from conda.base.context import context; print(context.conda_build_local_urls)"
> I suspect that it is because conda is finding the older version first in the pkgs folder.

There was one day a week or two in standup where I was warning about being scared we could have problems with conda 4.3 and conda-build 3.0 regarding the hashing scheme and the package cache (I got a lot of funny looks when I said that, so I probably didn't communicate my concerns in the most eloquent way.)  It's very likely this is related.

As I understand the situation @msarahan described at the top of the ticket, we have two packages in the package cache with nominally *identical* metadata, and the only difference is the timestamp on the package.  Conda hasn't ever had to deal with this situation before, prior to the build string hashing introduced in conda-build 3.

If this is the case, we can certainly fix this for conda 4.4.  Fix it thoroughly and completely, in all places where it could crop up and cause ugliness (there are possibly other situations, besides the one we're working through here).  I do still have some concerns though that conda 4.3 will never be able to handle the filename hashing completely and correctly (and certainly not any conda versions <= 4.3.23).
@mingwandroid As a test in your current workflow where you're running into your issue, can you (1) find a way to not install explicit tarballs directly, and (2) disable the build string hashing?  Let's see if we can at least work on isolating the source of the problem...
I only installed the explicit tarball so I could grep in the extracted index.json file to show you the timestamp values! The problem happens without having ever installed anything from an explicit tarball.

I cannot disable build string hashing. Can you fire up a Linux machine and figure it out there? I don't have time to look into this personally.
It strikes me that this isn't related to the hash string itself, only the fact that there are multiple packages of interest with identical filenames.

Resolving patch:
diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -531,8 +531,8 @@ def version_key(self, dist, vtype=None):
         bld = rec.get('build_number', 0)
         bs = rec.get('build')
         ts = rec.get('timestamp', 0)
-        return ((valid, -cpri, ver, bld, bs, ts) if context.channel_priority else
-                (valid, ver, -cpri, bld, bs, ts))
+        return ((valid, -cpri, ver, bld, ts, bs) if context.channel_priority else
+                (valid, ver, -cpri, bld, ts, bs))
 
     def features(self, dist):
         return set(self.index[dist].get('features', '').split())
@@ -669,7 +669,7 @@ def generate_version_metrics(self, C, specs, include0=False):
                 elif pkey[3] != version_key[3]:
                     ib += 1
                 # last field is timestamp. Use it as differentiator when build numbers are similar
-                elif pkey[5] != version_key[5]:
+                elif pkey[4] != version_key[4]:
                     ib += 1
 
                 if iv or include0:


Test patch: