]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/python-satsover-fix-building-without-rpm.patch
daq: Update to 2.0.4
[ipfire-2.x.git] / src / patches / python-satsover-fix-building-without-rpm.patch
CommitLineData
66befe59
SS
1diff -Nur src/bindings/pool.i sat-solver-bindings/bindings/pool.i
2--- src/bindings/pool.i 2011-04-25 12:03:31.000000000 +0000
3+++ sat-solver-bindings/bindings/pool.i 2011-04-29 18:40:59.645929695 +0000
4@@ -474,6 +474,7 @@
5 return repo;
6 }
7
8+#if defined(FEDORA)
9 /*
10 * Add RPM database to Pool.
11 *
12@@ -493,6 +494,7 @@
13 repo_add_rpmdb( repo, NULL, rootdir, 0 );
14 return repo;
15 }
16+#endif
17
18 %newobject create_repo;
19 /*
20diff -Nur src/bindings/repo.i sat-solver-bindings/bindings/repo.i
21--- src/bindings/repo.i 2011-04-25 12:03:31.000000000 +0000
22+++ sat-solver-bindings/bindings/repo.i 2011-04-29 18:37:13.856570319 +0000
23@@ -139,11 +139,13 @@
24 }
25 }
26
27+#if defined(FEDORA)
28 /*
29 * Add RPM database, optionally passing a _root_ directory
30 */
31 void add_rpmdb( const char *rootdir )
32 { repo_add_rpmdb( $self, NULL, rootdir, 0); }
33+#endif
34
35 /*
36 * Create solvable with +name+ and +evr+ in the Repo
37