Author: lslezak Date: Tue Aug 19 10:45:39 2008 New Revision: 50194 URL: http://svn.opensuse.org/viewcvs/yast?rev=50194&view=rev Log: - support source packages in Pkg::Resolvable*() functions, removed not working selection support from autodoc Modified: branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc Modified: branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc?rev=50194&r1=50193&r2=50194&view=diff ============================================================================== --- branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc (original) +++ branches/tmp/lslezak/pkg-bindings/src/Resolvable_Install.cc Tue Aug 19 10:45:39 2008 @@ -135,7 +135,7 @@ @builtin ResolvableInstallRepo @short Install all resolvables with selected name, from the specified repository @param name_r name of the resolvable, if empty ("") install all resolvables of the kind - @param kind_r kind of resolvable, can be `product, `patch, `package, `selection or `pattern + @param kind_r kind of resolvable, can be `product, `patch, `package, `srcpackage or `pattern @param repo_r ID of the repository @return boolean false if failed */ @@ -155,6 +155,9 @@ else if ( req_kind == "package" ) { kind = zypp::ResKind::package; } + else if ( req_kind == "srcpackage" ) { + kind = zypp::ResKind::srcpackage; + } else if ( req_kind == "pattern" ) { kind = zypp::ResKind::pattern; } @@ -177,7 +180,7 @@ @builtin ResolvableInstall @short Install all resolvables with selected name and kind @param name_r name of the resolvable, if empty ("") install all resolvables of the kind - @param kind_r kind of resolvable, can be `product, `patch, `package, `selection or `pattern + @param kind_r kind of resolvable, can be `product, `patch, `package, `srcpackage or `pattern @return boolean false if failed */ YCPValue @@ -191,7 +194,7 @@ @builtin ResolvableRemove @short Removes all resolvables with selected name and kind @param name_r name of the resolvable, if empty ("") remove all resolvables of the kind - @param kind_r kind of resolvable, can be `product, `patch, `package, `selection or `pattern + @param kind_r kind of resolvable, can be `product, `patch, `package, `srcpackage or `pattern @return boolean false if failed */ YCPValue @@ -210,6 +213,9 @@ else if ( req_kind == "package" ) { kind = zypp::ResKind::package; } + else if ( req_kind == "srcpackage" ) { + kind = zypp::ResKind::srcpackage; + } else if ( req_kind == "pattern" ) { kind = zypp::ResKind::pattern; } @@ -231,7 +237,7 @@ @builtin ResolvableNeutral @short Remove all transactions from all resolvables with selected name and kind @param name_r name of the resolvable, if empty ("") use all resolvables of the kind - @param kind_r kind of resolvable, can be `product, `patch, `package, `selection or `pattern + @param kind_r kind of resolvable, can be `product, `patch, `package, `srcpackage or `pattern @param force_r remove the transactions even on USER level - default is APPL_HIGH (use true value only if really needed!) @return boolean false if failed */ @@ -253,6 +259,9 @@ else if ( req_kind == "package" ) { kind = zypp::ResKind::package; } + else if ( req_kind == "srcpackage" ) { + kind = zypp::ResKind::srcpackage; + } else if ( req_kind == "pattern" ) { kind = zypp::ResKind::pattern; } @@ -295,7 +304,7 @@ @short Soft lock - it prevents the solver from re-selecting item if it's recommended (if it's required it will be selected). @param name_r name of the resolvable, if empty ("") use all resolvables of the kind - @param kind_r kind of resolvable, can be `product, `patch, `package, `selection or `pattern + @param kind_r kind of resolvable, can be `product, `patch, `package, `srcpackage or `pattern @return boolean false if failed */ YCPValue @@ -315,6 +324,9 @@ else if ( req_kind == "package" ) { kind = zypp::ResKind::package; } + else if ( req_kind == "srcpackage" ) { + kind = zypp::ResKind::package; + } else if ( req_kind == "pattern" ) { kind = zypp::ResKind::pattern; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org