DistributionLabel came after version 6.31.0
authorKlaus Kämpf <kkaempf@suse.de>
Sat, 11 Dec 2010 17:21:09 +0000 (18:21 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Sat, 11 Dec 2010 17:21:09 +0000 (18:21 +0100)
swig/Target.i
swig/ZYppCommitPolicy.i

index b8c2e3c..0c81a33 100644 (file)
@@ -1,15 +1,18 @@
 %ignore zypp::Target::reset;
+#if ZYPP_VERSION > 631
 namespace zypp
 {
   // Redefine nested class in global scope for SWIG
   struct DistributionLabel {};
 }
+#endif
 %include <zypp/Target.h>
 namespace zypp
 {
 typedef intrusive_ptr<Target> Target_Ptr;
 %template(Target_Ptr) intrusive_ptr<Target>;
 }
+#if ZYPP_VERSION > 631
 %{
   namespace zypp
   {
@@ -17,3 +20,4 @@ typedef intrusive_ptr<Target> Target_Ptr;
     typedef Target::DistributionLabel DistributionLabel;
   }
 %}
+#endif
\ No newline at end of file
index 2e23231..b0bce36 100644 (file)
@@ -1,4 +1,4 @@
-
+#if ZYPP_VERSION > 615
 #ifdef SWIGRUBY
 %rename("dryRun=") ZYppCommitPolicy::dryRun(bool);
 %rename("rpmNoSignature=") ZYppCommitPolicy::rpmNoSignature(bool);
@@ -7,3 +7,4 @@
 
 %include <zypp/DownloadMode.h>
 %include <zypp/ZYppCommitPolicy.h>
+#endif
\ No newline at end of file