- Add mock-specific build artifacts (chroot/, mock-*, mockroot/) - Include package build files (*.deb, *.changes, *.buildinfo) - Add development tools (.coverage, .pytest_cache, .tox) - Include system files (.DS_Store, Thumbs.db, ._*) - Add temporary and backup files (*.tmp, *.bak, *.backup) - Include local configuration overrides (config.local.yaml, .env.local) - Add test artifacts and documentation builds - Comprehensive coverage for Python build system project This ensures build artifacts, chroot environments, and development tools are properly ignored in version control.
13 lines
246 B
Python
Executable file
13 lines
246 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
import os
|
|
import sys
|
|
|
|
if os.getuid() != 0:
|
|
print("must be root to drop caches!")
|
|
sys.exit(-1)
|
|
|
|
print("******************* dropping caches")
|
|
with open('/proc/sys/vm/drop_caches', 'w') as f:
|
|
f.write("3")
|
|
sys.exit(0)
|