From 96dfc945927a9c27afad4bb7c87d0d1213907be2 Mon Sep 17 00:00:00 2001 From: acidburnmonkey Date: Mon, 26 May 2025 10:56:42 -0400 Subject: [PATCH] added copr --- rice-cook.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rice-cook.py b/rice-cook.py index 2b848f6..cf36a78 100755 --- a/rice-cook.py +++ b/rice-cook.py @@ -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