mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-11 07:30:28 +00:00
use generic removal method
This commit is contained in:
1 parent
be09c04e78
commit
a83f1d5aa5
2 files changed
+3
-15
No files matched your search
@@ -68,8 +68,7 @@ class Patch(Handler):
|
||||
package = Package.load(sources_dir, application.repository.pacman, application.repository.aur_url)
|
||||
patch_dir = application.repository.paths.patches_for(package.base)
|
||||
|
||||
if patch_dir.is_dir():
|
||||
shutil.rmtree(patch_dir) # remove old patches
|
||||
Patch.patch_set_remove(application, package.base) # remove old patches
|
||||
patch_dir.mkdir(mode=0o755, parents=True)
|
||||
|
||||
Sources.patch_create(sources_dir, patch_dir / "00-main.patch", *track)
|
||||
|
||||
Reference in new issue
Block a user