Skip to content

Commit

Permalink
bw lock: check dummy attribute instead of item list
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Jul 10, 2017
1 parent 760500c commit 9a4ae27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundlewrap/cmdline/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
def remove_dummy_nodes(targets):
_targets = []
for node in targets:
if list(node.items):
_targets.append(node)
if node.dummy:
io.stdout(_("{x} {node} is a dummy node").format(node=bold(node.name), x=yellow("»")))
else:
io.stdout(_("{x} {node} has no items").format(node=bold(node.name), x=yellow("»")))
_targets.append(node)
return _targets


Expand Down

0 comments on commit 9a4ae27

Please sign in to comment.