toolkit/iso/py
2022-06-17 11:49:22 -07:00
..
configs have a working script 2022-06-16 23:25:17 -07:00
sig add hash flag 2022-06-10 16:05:44 -07:00
templates comments to explain how to do things 2022-06-17 11:49:22 -07:00
util comments to explain how to do things 2022-06-17 11:49:22 -07:00
.gitignore start python conversion 2022-05-20 01:13:57 -07:00
build-iso have a working script 2022-06-16 23:25:17 -07:00
common.py update iso utils and prep 2022-06-15 13:53:12 -07:00
README.md Final commit for 5/22 2022-05-23 00:23:53 -07:00
sync-from-peridot add hash flag 2022-06-10 16:05:44 -07:00
sync-from-peridot-test commit iso build portions 2022-06-16 22:55:07 -07:00
sync-sig add hash flag 2022-06-10 16:05:44 -07:00
test.py Final Commit for 5/21 2022-05-21 00:10:37 -07:00
test2.py start python conversion 2022-05-20 01:13:57 -07:00

iso

TODO

Verbose mode should exist to output everything that's being called or ran.

There should be additional logging regardless, not just to stdout, but also to a file.

scripts

  • sync-variant-pungi
  • sync-variant-peridot
  • sync-from-pungi
  • sync-from-peridot
  • sync-sig
  • build-all-iso
  • sign-repos-only

wrappers

  • lorax-generators
  • sync-generators

rules

imports

When making a script, you must import common. This is insanely bad practice, but we would prefer if we started out this way:

from common import *
import argparse

Whatever is imported in common will effectively be imported in your scripts as well, but there is nothing stopping you from defining them again, even out of habit. argparse is there because you better have a very, very good reason to not be writing scripts that are major version specific.

If you are writing something that could be arch specific based on the major version (which is likely), make sure to import the util module and use it arch checker appropriately. Small (but weak) example.

from util import Checks

rlvars = rldict['9']
r = Checks(rlvars, arch)
r.check_valid_arch()

script names and permissions

  • Callable scripts should not end in .py
  • They should have at least 775 or +x permissions