diff --git a/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch b/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch
index 2b6c1c85b4..02c64ecb99 100644
--- a/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch
+++ b/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch
@@ -1,4 +1,4 @@
-From 66610d0a0c683ecdd2f39e3936f88624452590c1 Mon Sep 17 00:00:00 2001
+From 018909b0f28dca97edeaadde8a3a13ca786dd295 Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Fri, 30 Dec 2016 18:05:36 +0200
 Subject: [PATCH] Do not try to obtain PYTHON_INSTALL_DIR by running python.
diff --git a/meta/recipes-devtools/librepo/librepo_1.22.0.bb b/meta/recipes-devtools/librepo/librepo_1.22.1.bb
similarity index 94%
rename from meta/recipes-devtools/librepo/librepo_1.22.0.bb
rename to meta/recipes-devtools/librepo/librepo_1.22.1.bb
index 2d9b1db16b..8f392de012 100644
--- a/meta/recipes-devtools/librepo/librepo_1.22.0.bb
+++ b/meta/recipes-devtools/librepo/librepo_1.22.1.bb
@@ -9,7 +9,7 @@ SRC_URI = "git://github.com/rpm-software-management/librepo.git;branch=master;pr
            file://0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch \
            "
 
-SRCREV = "d665398754be6fe270d0a70c3db2ea5c3b917e68"
+SRCREV = "dc24c108114e660284ce9938104c5491502d8941"
 
 DEPENDS = "curl glib-2.0 openssl attr gpgme libxml2"
 
