diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
index e2f90644c2..88eb22d253 100644
--- a/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
+++ b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
@@ -1,4 +1,4 @@
-From 71df5a5471081cf2338f9f046cdc51d064534297 Mon Sep 17 00:00:00 2001
+From 5684a44dd48f82e00c356383137f0aad9d796466 Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Fri, 30 Dec 2016 18:31:02 +0200
 Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
@@ -13,7 +13,7 @@ Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
-index 05ac89f9f491f93367283974ea38b5e314f0c5b6..44e38b386abc1c8eb135721d89509c649fdc6297 100644
+index 05ac89f..44e38b3 100644
 --- a/src/python/CMakeLists.txt
 +++ b/src/python/CMakeLists.txt
 @@ -48,7 +48,7 @@ IF (SKBUILD)
diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.5.bb b/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.6.bb
similarity index 96%
rename from meta/recipes-devtools/createrepo-c/createrepo-c_1.2.5.bb
rename to meta/recipes-devtools/createrepo-c/createrepo-c_1.2.6.bb
index 7ffb7bce66..cb604c7884 100644
--- a/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.5.bb
+++ b/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.6.bb
@@ -8,7 +8,7 @@ SRC_URI = "git://github.com/rpm-software-management/createrepo_c;branch=1.x.x-ma
            file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \
            "
 
-SRCREV = "6a48c5f599d30a20d15ea13b1dea82a86734d3d2"
+SRCREV = "7ab2c171f9aeab908f5fa19c3680deb4848e0649"
 
 DEPENDS = "expat curl glib-2.0 libxml2 openssl bzip2 zlib file sqlite3 xz rpm"
 DEPENDS:append:class-native = " file-replacement-native"
