blob: cedf539243002d0e834284e438114d40cf2107f0 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From 5f8eee5040d7074710cd542fc50f7a40918321fc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 23 Dec 2019 14:30:22 -0800
4Subject: [PATCH] include <stdexcept> for runtime_error
5
6Fixes
7
8error: class 'libdnf::ModulePackageContainer::Exception' does not have any field named 'runtime_error'
9 explicit Exception(const std::string &what) : runtime_error(what) {}
10 ^~~~~~~~~~~~~
11
12Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/867]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 libdnf/goal/Goal.hpp | 1 +
16 libdnf/module/ModulePackageContainer.hpp | 1 +
17 libdnf/repo/solvable/Dependency.cpp | 3 ++-
18 3 files changed, 4 insertions(+), 1 deletion(-)
19
20diff --git a/libdnf/goal/Goal.hpp b/libdnf/goal/Goal.hpp
21index f33dfa24..7b8d822c 100644
22--- a/libdnf/goal/Goal.hpp
23+++ b/libdnf/goal/Goal.hpp
24@@ -22,6 +22,7 @@
25 #define __GOAL_HPP
26
27 #include <memory>
28+#include <stdexcept>
29
30 #include "../dnf-types.h"
31 #include "../hy-goal.h"
32diff --git a/libdnf/module/ModulePackageContainer.hpp b/libdnf/module/ModulePackageContainer.hpp
33index 1f815fda..37a8832d 100644
34--- a/libdnf/module/ModulePackageContainer.hpp
35+++ b/libdnf/module/ModulePackageContainer.hpp
36@@ -30,6 +30,7 @@
37 #include <string>
38 #include <vector>
39 #include <set>
40+#include <stdexcept>
41
42 //class ModulePackageContainer;
43 //typedef std::shared_ptr<ModulePackageContainer> ModulePackageContainerPtr;
44diff --git a/libdnf/repo/solvable/Dependency.cpp b/libdnf/repo/solvable/Dependency.cpp
45index 6682b729..0fc8b5cd 100644
46--- a/libdnf/repo/solvable/Dependency.cpp
47+++ b/libdnf/repo/solvable/Dependency.cpp
48@@ -18,6 +18,7 @@
49 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
50 */
51
52+#include <stdexcept>
53 #include "Dependency.hpp"
54 #include "libdnf/utils/utils.hpp"
55 #include "libdnf/repo/DependencySplitter.hpp"
56@@ -106,4 +107,4 @@ Dependency::getReldepId(DnfSack *sack, const char * reldepStr)
57 }
58 }
59
60-}
61\ No newline at end of file
62+}
63--
642.24.1
65