From 1997b2b91caff0ab239dee043fbff0cb2f13016c Mon Sep 17 00:00:00 2001 From: evm Date: Fri, 23 Apr 2021 13:17:20 -0400 Subject: [PATCH] Fixed example usage --- allstar/allstar.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/allstar/allstar.py b/allstar/allstar.py index 77c5256..b46707b 100644 --- a/allstar/allstar.py +++ b/allstar/allstar.py @@ -1,5 +1,5 @@ ############################################################################################## -# Copyright 2020 The Johns Hopkins University Applied Physics Laboratory LLC +# Copyright 2021 The Johns Hopkins University Applied Physics Laboratory LLC # All rights reserved. # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software @@ -35,8 +35,9 @@ class Repo(object): Example: r = Repo('amd64') - for pkg in r.package_list(): - for binary in r.package_binaries(pkg): + for pkg in r.packages(): + pobj = r.package(pkg) + for binary in pobj.get_binaries(): process(binary) """