Skip to content

Commit

Permalink
use .channel_name for leaves export
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalieris committed Aug 15, 2021
1 parent 62a8dc6 commit 392934d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda-tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import conda.api
import networkx

__version__ = '1.0.1'
__version__ = '1.0.2'

# The number of spaces
TABSIZE = 3
Expand Down Expand Up @@ -308,7 +308,7 @@ def get_cycles(graph):
if args.export:
for p in get_leaves(g):
k = get_package_key(l, p)
print(l[k]['schannel']+'::'+l[k]['name']+"="+l[k]['version']+"="+l[k]['build'])
print('%s::%s=%s=%s' % (l[k].channel.channel_name, l[k].name, l[k].version, l[k].build))
else:
print(get_leaves(g))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
shutil.copyfile('conda-tree.py', 'conda_tree.py')

setup(name='conda-tree',
version='1.0.1',
version='1.0.2',
description='conda dependency tree helper',
author='Renan Valieris',
url='https://github.com/rvalieris/conda-tree',
Expand Down

0 comments on commit 392934d

Please sign in to comment.