mirror of
https://github.com/clearlinux/unbundle.git
synced 2026-06-16 02:35:48 +00:00
Remove no longer valid pundle detection
This commit is contained in:
committed by
William Douglas
parent
f880226cf2
commit
4ec459ee2c
@@ -15,24 +15,6 @@ def resolve_includes(bundle_name, bundle_path, bundles=False):
|
||||
with open(bundle_def, "r", encoding="latin-1") as bundlef:
|
||||
lines = bundlef.readlines()
|
||||
except FileNotFoundError:
|
||||
# maybe this is a pundle
|
||||
packages_f = os.path.join(bundle_path, "packages")
|
||||
if not os.path.exists(packages_f):
|
||||
# pundle definition file does not exist
|
||||
print(f"ERROR: could not find {bundle_name} bundle")
|
||||
return set(), False
|
||||
|
||||
# find name on its own line
|
||||
with open(packages_f, "r") as pkgdef:
|
||||
for line in pkgdef.readlines():
|
||||
# ignore things after a comment '#'
|
||||
c = line.find('#')
|
||||
if c >= 0:
|
||||
line = line[:c]
|
||||
line = line.strip()
|
||||
if f"{bundle_name}" == line:
|
||||
return set([bundle_name]), True
|
||||
|
||||
print(f"ERROR: could not find {bundle_name} bundle")
|
||||
return set(), False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user