Skip to content

fix: restore command, remove premature creation of pkgbase

Mario Oenning requested to merge moson/aurweb:fix-restore-command into master

We're currently creating a "PackageBases" when the "restore" command is executed.

This is problematic for pkgbases that never existed before. In those cases it will create the record but fail in the script. Thus it leaves an orphan "PackageBases" record in the DB (which does not have any related "Packages" record(s)).

Navigating to such a packages /pkgbase/... URL will result in a crash since it is not foreseen to have "orphan" pkgbase records.

We can safely remove the early creation of that record because it'll be taken care of in the script that is being called.

Issue report (fixes root cause): #448 (closed)

Signed-off-by: moson-mo

Merge request reports