added copr

This commit is contained in:
acidburnmonkey
2025-05-26 10:56:42 -04:00
parent 2a8cfd1cc0
commit 96dfc94592
+9 -1
View File
@@ -170,7 +170,15 @@ def install_programs_dnf():
subprocess.run(f'dnf config-manager addrepo --from-repofile={url}')
except Exception as e:
console.print(Exception(),":x:" , style='error')
logging.critical(f"Error at Installing programs: {str(e)}")
logging.critical(f"Error adding extra repos: {str(e)}")
if copr:
for id in copr:
try:
subprocess.run(f'sudo dnf copr enable {id}')
except Exception as e:
console.print(Exception(),":x:" , style='error')
logging.critical(f"Err adding Copr: {str(e)}")
#for some reason they have to be passed to dnf individually
# instead of unpacked list *programs