File 0001-Fix-copr-disable-command-traceback-RhBug-1693551.patch of Package dnf-plugins-core

From 3bbae8fb4f73dede47741331eb2bdd3a4bf47176 Mon Sep 17 00:00:00 2001
From: Jaroslav Rohel <jrohel@redhat.com>
Date: Thu, 28 Mar 2019 15:29:00 +0100
Subject: [PATCH 1/2] Fix: copr disable command traceback (RhBug:1693551)

The "modify" argument of write_raw_configfile method must be
a dictionary with strings.

Closes: #329
Approved by: m-blaha
---
 plugins/copr.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/copr.py b/plugins/copr.py
index 10cf5f9..8a43593 100644
--- a/plugins/copr.py
+++ b/plugins/copr.py
@@ -518,7 +518,7 @@ Do you really want to enable {0}?""".format('/'.join([self.copr_hostname,
                   .format(copr_username, copr_projectname)))
 
         self.base.conf.write_raw_configfile(repo.repofile, repo.id,
-                                            self.base.conf.substitutions, {"enabled": 0})
+                                            self.base.conf.substitutions, {"enabled": "0"})
 
     @classmethod
     def _get_data(cls, f):
-- 
2.20.1

openSUSE Build Service is sponsored by