mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-17 22:05:03 +01:00
11 lines
253 B
Python
11 lines
253 B
Python
#!/usr/bin/env python3
|
|
|
|
import os.path
|
|
import portage
|
|
import shutil
|
|
|
|
repo = portage.db['/']['vartree'].settings.repositories['gentoo']
|
|
git = os.path.join(repo.location, '.git')
|
|
|
|
if repo.sync_type != 'git' and os.path.exists(git):
|
|
shutil.rmtree(git)
|