Commit 4e6a11b2 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Print dep list only if any exists

parent bb7d693a
......@@ -366,7 +366,8 @@ class GemDeps(object):
if serialized:
latest_gem = self.smallest_satisfiable(serialized, gem)
dependency_list = []
print(" Dependencies of %s" % gem.name)
if len(latest_gem['dependencies']) > 0:
print(" Dependencies of %s" % gem.name)
for dependency in latest_gem['dependencies']:
n = GemfileParser.Dependency()
n.name = dependency[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment