diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2010-12-11 18:21:09 +0100 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2010-12-11 18:21:09 +0100 |
commit | 0ac34d70163e0ede90578f2e8fe16c21173d58ed (patch) | |
tree | 94ea1cf80660a5425d5ad178e7078a91dd264bbd /swig | |
parent | 7cacec6ba9ff14a57a1920079b261d675782f524 (diff) | |
download | libzypp-bindings-0ac34d70163e0ede90578f2e8fe16c21173d58ed.tar.gz libzypp-bindings-0ac34d70163e0ede90578f2e8fe16c21173d58ed.tar.bz2 libzypp-bindings-0ac34d70163e0ede90578f2e8fe16c21173d58ed.zip |
DistributionLabel came after version 6.31.0
Diffstat (limited to 'swig')
-rw-r--r-- | swig/Target.i | 4 | ||||
-rw-r--r-- | swig/ZYppCommitPolicy.i | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/swig/Target.i b/swig/Target.i index b8c2e3c..0c81a33 100644 --- a/swig/Target.i +++ b/swig/Target.i @@ -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 diff --git a/swig/ZYppCommitPolicy.i b/swig/ZYppCommitPolicy.i index 2e23231..b0bce36 100644 --- a/swig/ZYppCommitPolicy.i +++ b/swig/ZYppCommitPolicy.i @@ -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 |