Handle native packages

parent 0b110d45
...@@ -209,8 +209,9 @@ class DetailedDependency(object): ...@@ -209,8 +209,9 @@ class DetailedDependency(object):
if ":" in debian_version: if ":" in debian_version:
pos = debian_version.index(":") pos = debian_version.index(":")
debian_version = debian_version[pos + 1:] debian_version = debian_version[pos + 1:]
pos_rev = debian_version.index("-") if "-" in debian_version:
debian_version = debian_version[:pos_rev] pos_rev = debian_version.index("-")
debian_version = debian_version[:pos_rev]
if '~' in debian_version: if '~' in debian_version:
debian_version = debian_version[:debian_version.index('~')] debian_version = debian_version[:debian_version.index('~')]
elif '+' in debian_version: elif '+' in debian_version:
...@@ -315,7 +316,8 @@ class GemDeps(object): ...@@ -315,7 +316,8 @@ class GemDeps(object):
while True: while True:
try: try:
current_gem = DetailedDependency(self.original_list[counter]) current_gem = DetailedDependency(self.original_list[counter])
print("------------------------------------------------------") print("---------------------------------------------------(%s)"
% (self.appname))
print("Gem: %s" % current_gem.name) print("Gem: %s" % current_gem.name)
if "rails-assets" in current_gem.name: if "rails-assets" in current_gem.name:
print("\tRails Assets Found. Skipping") print("\tRails Assets Found. Skipping")
......
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