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 30802fd4f28..c7d23732ab0 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 a6282ddaf4a7143866ef500db3bb334b599fa300 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.2.bb b/meta/recipes-devtools/librepo/librepo_1.21.3.bb
similarity index 87%
rename from meta/recipes-devtools/librepo/librepo_1.21.2.bb
rename to meta/recipes-devtools/librepo/librepo_1.21.3.bb
index ab60e76b6e1..2d9b1db16b6 100644
--- a/meta/recipes-devtools/librepo/librepo_1.21.2.bb
+++ b/meta/recipes-devtools/librepo/librepo_1.21.3.bb
@@ -3,13 +3,13 @@ SUMMARY = "A library providing C and Python (libcURL like) API \
 HOMEPAGE = "https://github.com/rpm-software-management/librepo"
 DESCRIPTION = "${SUMMARY}"
 LICENSE = "LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4bf661c1e3793e55c8d1051bc5e0ae21"
 
 SRC_URI = "git://github.com/rpm-software-management/librepo.git;branch=master;protocol=https;tag=${PV} \
            file://0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch \
            "
 
-SRCREV = "f892f216a8f7934f32846712f56a27f997b300a3"
+SRCREV = "d665398754be6fe270d0a70c3db2ea5c3b917e68"
 
 DEPENDS = "curl glib-2.0 openssl attr gpgme libxml2"
 
