Louis Abel
53ab6a9ec5
* Fix peridot repoclosure script * Modify shared utils for metadata and repositories (part 1, metadata) * Modify dnf utils to take advantage of shared utility (part 2, metadata)
27 lines
630 B
Python
Executable File
27 lines
630 B
Python
Executable File
# Use this to test upcoming functionality
|
|
|
|
import argparse
|
|
import sys
|
|
#import createrepo_c as cr
|
|
|
|
from empanadas.common import *
|
|
from empanadas.util import Checks
|
|
from empanadas.util import RepoSync
|
|
|
|
# Start up the parser baby
|
|
parser = argparse.ArgumentParser(description="Peridot Upstream Repoclosure")
|
|
|
|
# All of our options
|
|
parser.add_argument('--release', type=str, help="Major Release Version or major-type (eg 9-beta)", required=True)
|
|
|
|
# Parse them
|
|
results = parser.parse_args()
|
|
rlvars = rldict[results.release]
|
|
major = rlvars['major']
|
|
|
|
r = Checks(rlvars, config['arch'])
|
|
r.check_valid_arch()
|
|
|
|
def run():
|
|
print(sys.path)
|