|
@@ -256,7 +256,7 @@ def lookup_recipe(args):
|
|
|
with open(pkgdatafile, 'r') as f:
|
|
|
found = False
|
|
|
for line in f:
|
|
|
- if line.startswith('PN'):
|
|
|
+ if line.startswith('PN:'):
|
|
|
print("%s" % line.split(':', 1)[1].strip())
|
|
|
found = True
|
|
|
break
|
|
@@ -292,19 +292,19 @@ def package_info(args):
|
|
|
pe = ''
|
|
|
pr = ''
|
|
|
for line in f:
|
|
|
- if line.startswith('PKGV'):
|
|
|
+ if line.startswith('PKGV:'):
|
|
|
pkg_version = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PKGE'):
|
|
|
+ elif line.startswith('PKGE:'):
|
|
|
pkge = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PKGR'):
|
|
|
+ elif line.startswith('PKGR:'):
|
|
|
pkgr = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PN'):
|
|
|
+ elif line.startswith('PN:'):
|
|
|
recipe = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PV'):
|
|
|
+ elif line.startswith('PV:'):
|
|
|
recipe_version = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PE'):
|
|
|
+ elif line.startswith('PE:'):
|
|
|
pe = line.split(':', 1)[1].strip()
|
|
|
- elif line.startswith('PR'):
|
|
|
+ elif line.startswith('PR:'):
|
|
|
pr = line.split(':', 1)[1].strip()
|
|
|
elif line.startswith('PKGSIZE'):
|
|
|
pkg_size = line.split(':', 1)[1].strip()
|