Make database usage the default

Some cleanup of no longer used functions
This commit is contained in:
Stephan Kulow
2022-11-01 11:23:40 +01:00
parent 9554fea7e1
commit 9ed8abad2b
5 changed files with 22 additions and 70 deletions

View File

@@ -77,15 +77,10 @@ def main():
default="INFO",
help="logging level",
)
parser.add_argument(
"--db",
action="store_true",
help="Import revisions into database only",
)
parser.add_argument(
"--export",
action="store_true",
help="Export database fields for the given package as JSON",
help="Export database fields for the given package as YAML",
)
args = parser.parse_args()
@@ -113,12 +108,9 @@ def main():
importer = Importer(
PROJECTS, args.package, args.repodir, args.search_ancestor, args.rebase_devel
)
if args.db:
importer.import_into_db()
importer.export_as_git()
return
importer.import_all_revisions(args.gc)
importer.set_gc_interval(args.gc)
importer.import_into_db()
importer.export_as_git()
if __name__ == "__main__":