planet: fix the script dynamically generating the planet's config
Fixes https://pagure.io/fedora-infrastructure/issue/9799 Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
18ad21119b
commit
5637d91feb
1 changed files with 7 additions and 7 deletions
|
@ -150,14 +150,14 @@ def main(config_file='/etc/planetbuilder.conf'):
|
|||
if pb.conf.group:
|
||||
fn = '.planet.%s' % pb.conf.group
|
||||
|
||||
for (n, p, u, g, c, h, s) in pwd.getpwall():
|
||||
if u < 500:
|
||||
rootpath = "/home/fedora"
|
||||
for folder in sorted(os.listdir(rootpath)):
|
||||
if folder in pb.conf.ignore_users:
|
||||
continue
|
||||
if n in pb.conf.ignore_users:
|
||||
continue
|
||||
|
||||
if os.path.exists(h + '/' + fn):
|
||||
for entry in PlanetFile(h + '/' + fn, n):
|
||||
|
||||
filename = os.path.join(rootpath, folder, fn)
|
||||
if os.path.exists(filename):
|
||||
for entry in PlanetFile(filename, folder):
|
||||
pb.add(entry)
|
||||
|
||||
pb.compile()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue