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 30802fd4f2..0653c3f7d4 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 e15c8ab0aab4eda7754e186c63b5ee0feb13f886 Mon Sep 17 00:00:00 2001
+From 88fa058c28a583ee30a532a9fb085be1219554c7 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.21.1.bb b/meta/recipes-devtools/librepo/librepo_1.21.2.bb
similarity index 94%
rename from meta/recipes-devtools/librepo/librepo_1.21.1.bb
rename to meta/recipes-devtools/librepo/librepo_1.21.2.bb
index 9cefbfd48e..ab60e76b6e 100644
--- a/meta/recipes-devtools/librepo/librepo_1.21.1.bb
+++ b/meta/recipes-devtools/librepo/librepo_1.21.2.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 = "86ed082e25bbd1901d21d75924297c7697b33307"
+SRCREV = "f892f216a8f7934f32846712f56a27f997b300a3"
 
 DEPENDS = "curl glib-2.0 openssl attr gpgme libxml2"
 
