Bump to 17.31.23
[platform/upstream/libzypp.git] / packaging / fix_swig_syntax_error.patch
1 diff --git a/zypp-core/onmedialocation.h b/zypp-core/onmedialocation.h
2 index 6755c45..c764a69 100644
3 --- a/zypp-core/onmedialocation.h
4 +++ b/zypp-core/onmedialocation.h
5 @@ -128,10 +128,10 @@ namespace zypp
6  
7    /** \relates OnMediaLocation Stream output */
8    std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj );
9 -
10 +#ifndef SWIG // Swig treats it as syntax error
11    /** \relates OnMediaLocation Verbose stream output */
12    std::ostream & dumOn( std::ostream & str, const OnMediaLocation & obj );
13 -
14 +#endif
15  } // namespace zypp
16  ///////////////////////////////////////////////////////////////////
17  #endif // ZYPP_SOURCE_ONMEDIALOCATION_H
18 diff --git a/zypp/Patch.h b/zypp/Patch.h
19 index 9247c73..138e3a4 100644
20 --- a/zypp/Patch.h
21 +++ b/zypp/Patch.h
22 @@ -107,7 +107,7 @@ namespace zypp
23        bool isCategory( const std::string & category_r ) const;
24        /** \overload taking OR'ed \ref Categories */
25        bool isCategory( Categories category_r ) const;
26 -
27 +#ifndef SWIG // Swig treats it as syntax error
28        /** \overload taking container of category strings
29         * 2nd template arg just to prevent instantiation for Category
30         */
31 @@ -118,7 +118,7 @@ namespace zypp
32          { if ( isCategory( el ) ) return true; }
33          return false;
34        }
35 -
36 +#endif
37        /** Patch category as enum of wellknown categories.
38         * Unknown values are mapped to \ref CAT_OTHER.
39         */
40 @@ -144,6 +144,7 @@ namespace zypp
41        /** \overload taking OR'ed \ref SeverityFlags */
42        bool isSeverity( SeverityFlags severity_r ) const;
43  
44 +#ifndef SWIG // Swig treats it as syntax error
45        /** \overload taking container of severity strings
46         * 2nd template arg just to prevent instantiation for SeverityFlag
47         */
48 @@ -154,6 +155,7 @@ namespace zypp
49          { if ( isSeverity( el ) ) return true; }
50          return false;
51        }
52 +#endif
53  
54        /** Severity string mapped to an enum.
55         * Unknown string values are mapped to \ref SEV_OTHER
56 diff --git a/zypp/ResPool.h b/zypp/ResPool.h
57 index 32933c9..4fddcba 100644
58 --- a/zypp/ResPool.h
59 +++ b/zypp/ResPool.h
60 @@ -335,7 +335,9 @@ namespace zypp
61         * content changes. User code usually want's to call \ref changedPseudoInstalled
62         * directly.
63         */
64 +#ifndef SWIG // Swig treats it as syntax error
65        EstablishedStates establishedStates() const;
66 +#endif
67  
68        /** Map holding pseudo installed items where current and established status differ. */
69        typedef EstablishedStates::ChangedPseudoInstalled ChangedPseudoInstalled;