Export the built tree as git repo #9

Merged
Ghost merged 24 commits from add_export into main 2022-11-02 14:17:24 +01:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 8a863498db - Show all commits

View File

@ -91,7 +91,7 @@ def main():
return
if not args.repodir:
args.repodir = pathlib.Path(args.package)
args.repodir = pathlib.Path("repos/" + args.package)
Ghost marked this conversation as resolved
Review

if in L47 use a type pathlib.Path, like in L52, you will be sure that a path is given, and this line can be args.repodir = "repos" / args.package

if in L47 use a type pathlib.Path, like in L52, you will be sure that a path is given, and this line can be `args.repodir = "repos" / args.package`
Review

But we need package for more than that

But we need package for more than that
importer = Importer(URL_OBS, "openSUSE:Factory", args.package)
importer.import_into_db()

1
repos/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*