mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-10 17:21:46 +00:00
Enable the --lookup feature
This commit is contained in:
@@ -1345,6 +1345,11 @@ if __name__ == '__main__':
|
||||
if ops.delete:
|
||||
pm.opr.remove_packages(ops.delete)
|
||||
|
||||
if ops.lookup:
|
||||
logger.debug("looking up %s", ops.lookup)
|
||||
for p in pm.opr.lookup_all(ops.lookup):
|
||||
print p
|
||||
|
||||
except (OnlPackageError, onlyaml.OnlYamlError), e:
|
||||
logger.error(e)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user