Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory
checked in at Wed Jul 27 12:51:00 CEST 2011.



--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes       2011-06-27 
17:12:14.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes  
2011-07-27 10:15:57.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Jul 27 08:09:42 UTC 2011 - [email protected]
+
+- Pkg::ResolvableProperties() supports source packages
+  (`srcpackage) resolvables
+- 2.21.5
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  yast2-pkg-bindings-2.21.4.tar.bz2

New:
----
  yast2-pkg-bindings-2.21.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.XiGqVG/_old  2011-07-27 12:47:05.000000000 +0200
+++ /var/tmp/diff_new_pack.XiGqVG/_new  2011-07-27 12:47:05.000000000 +0200
@@ -20,12 +20,12 @@
 
 Name:           yast2-pkg-bindings-devel-doc
 
-Version:        2.21.4
+Version:        2.21.5
 Release:        1
 License:        GPL
 Group:          Documentation/HTML
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Source0:        yast2-pkg-bindings-2.21.4.tar.bz2
+Source0:        yast2-pkg-bindings-2.21.5.tar.bz2
 Prefix:         %_prefix
 
 # same as in the main package (because we use the same configure.in.in)
@@ -42,7 +42,7 @@
 from the pkg-bindings sources.
 
 %prep
-%setup -n yast2-pkg-bindings-2.21.4
+%setup -n yast2-pkg-bindings-2.21.5
 # build only documentation, ignore all other directories
 echo "doc" > SUBDIRS
 

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.XiGqVG/_old  2011-07-27 12:47:05.000000000 +0200
+++ /var/tmp/diff_new_pack.XiGqVG/_new  2011-07-27 12:47:05.000000000 +0200
@@ -19,11 +19,11 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        2.21.4
+Version:        2.21.5
 Release:        1
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Source0:        yast2-pkg-bindings-2.21.4.tar.bz2
+Source0:        yast2-pkg-bindings-2.21.5.tar.bz2
 
 Prefix:         /usr
 
@@ -46,7 +46,7 @@
 library in YaST2.
 
 %prep
-%setup -n yast2-pkg-bindings-2.21.4
+%setup -n yast2-pkg-bindings-2.21.5
 # build only the library, ignore documentation (it is in devel-doc package)
 echo "src" > SUBDIRS
 

++++++ yast2-pkg-bindings-2.21.4.tar.bz2 -> yast2-pkg-bindings-2.21.5.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-2.21.4/VERSION 
new/yast2-pkg-bindings-2.21.5/VERSION
--- old/yast2-pkg-bindings-2.21.4/VERSION       2011-06-27 17:05:34.000000000 
+0200
+++ new/yast2-pkg-bindings-2.21.5/VERSION       2011-07-27 10:11:36.000000000 
+0200
@@ -1 +1 @@
-2.21.4
+2.21.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-2.21.4/configure 
new/yast2-pkg-bindings-2.21.5/configure
--- old/yast2-pkg-bindings-2.21.4/configure     2011-06-27 17:08:53.000000000 
+0200
+++ new/yast2-pkg-bindings-2.21.5/configure     2011-07-27 10:12:20.000000000 
+0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for yast2-pkg-bindings 2.21.4.
+# Generated by GNU Autoconf 2.68 for yast2-pkg-bindings 2.21.5.
 #
 # Report bugs to <http://bugs.opensuse.org/>.
 #
@@ -570,8 +570,8 @@
 # Identity of this package.
 PACKAGE_NAME='yast2-pkg-bindings'
 PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.21.4'
-PACKAGE_STRING='yast2-pkg-bindings 2.21.4'
+PACKAGE_VERSION='2.21.5'
+PACKAGE_STRING='yast2-pkg-bindings 2.21.5'
 PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
 PACKAGE_URL=''
 
@@ -1363,7 +1363,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures yast2-pkg-bindings 2.21.4 to adapt to many kinds of 
systems.
+\`configure' configures yast2-pkg-bindings 2.21.5 to adapt to many kinds of 
systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1435,7 +1435,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of yast2-pkg-bindings 2.21.4:";;
+     short | recursive ) echo "Configuration of yast2-pkg-bindings 2.21.5:";;
    esac
   cat <<\_ACEOF
 
@@ -1553,7 +1553,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-yast2-pkg-bindings configure 2.21.4
+yast2-pkg-bindings configure 2.21.5
 generated by GNU Autoconf 2.68
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2006,7 +2006,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by yast2-pkg-bindings $as_me 2.21.4, which was
+It was created by yast2-pkg-bindings $as_me 2.21.5, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   $ $0 $@
@@ -2936,7 +2936,7 @@
 
 # Define the identity of the package.
  PACKAGE='yast2-pkg-bindings'
- VERSION='2.21.4'
+ VERSION='2.21.5'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3058,7 +3058,7 @@
 
 
 
-VERSION="2.21.4"
+VERSION="2.21.5"
 RPMNAME="yast2-pkg-bindings"
 MAINTAINER="Ladislav Slezák <[email protected]>"
 
@@ -16660,7 +16660,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by yast2-pkg-bindings $as_me 2.21.4, which was
+This file was extended by yast2-pkg-bindings $as_me 2.21.5, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -16726,7 +16726,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-yast2-pkg-bindings config.status 2.21.4
+yast2-pkg-bindings config.status 2.21.5
 configured by $0, generated by GNU Autoconf 2.68,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-2.21.4/configure.in 
new/yast2-pkg-bindings-2.21.5/configure.in
--- old/yast2-pkg-bindings-2.21.4/configure.in  2011-06-27 17:08:40.000000000 
+0200
+++ new/yast2-pkg-bindings-2.21.5/configure.in  2011-07-27 10:12:15.000000000 
+0200
@@ -3,7 +3,7 @@
 dnl -- This file is generated by y2autoconf 2.18.11 - DO NOT EDIT! --
 dnl    (edit configure.in.in instead)
 
-AC_INIT(yast2-pkg-bindings, 2.21.4, http://bugs.opensuse.org/, 
yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.21.5, http://bugs.opensuse.org/, 
yast2-pkg-bindings)
 dnl Check for presence of file 'RPMNAME'
 AC_CONFIG_SRCDIR([RPMNAME])
 
@@ -18,7 +18,7 @@
 AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
 
 dnl Important YaST2 variables
-VERSION="2.21.4"
+VERSION="2.21.5"
 RPMNAME="yast2-pkg-bindings"
 MAINTAINER="Ladislav Slezák <[email protected]>"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-2.21.4/src/Resolvable_Properties.cc 
new/yast2-pkg-bindings-2.21.5/src/Resolvable_Properties.cc
--- old/yast2-pkg-bindings-2.21.4/src/Resolvable_Properties.cc  2011-06-14 
13:34:07.000000000 +0200
+++ new/yast2-pkg-bindings-2.21.5/src/Resolvable_Properties.cc  2011-07-27 
10:11:54.000000000 +0200
@@ -19,7 +19,7 @@
  */
 
 /*
-   File:       $Id: Resolvable_Properties.cc 64337 2011-06-14 11:34:05Z 
lslezak $
+   File:       $Id: Resolvable_Properties.cc 65026 2011-07-27 08:11:53Z 
lslezak $
    Author:     Ladislav Slezák <[email protected]>
    Summary:     Resolvable properties
    Namespace:   Pkg
@@ -41,6 +41,7 @@
 #include <zypp/Patch.h>
 #include <zypp/Pattern.h>
 #include <zypp/Package.h>
+#include <zypp/SrcPackage.h>
 #include <zypp/ui/Status.h>
 
 #include <zypp/Dep.h>
@@ -108,6 +109,10 @@
      `package keys:
         + "path"
         + "location"
+     `srcpackage keys:
+        + "path"
+        + "location"
+       + "src_type" -> string : "src" or "nosrc" type
      `pattern keys:
         + "category"
         + "user_visible"
@@ -258,6 +263,30 @@
            y2error("package %s is not a package", item->name().c_str() );
        }
     }
+    else if( req_kind == "srcpackage" )
+    {
+       zypp::SrcPackage::constPtr pkg = boost::dynamic_pointer_cast<const 
zypp::SrcPackage>(item.resolvable());
+       if (pkg)
+       {
+           std::string tmp(pkg->location().filename().asString());
+           if (!tmp.empty())
+           {
+               info->add(YCPString("path"), YCPString(tmp));
+           }
+
+           tmp = pkg->location().filename().basename();
+           if (!tmp.empty())
+           {
+               info->add(YCPString("location"), YCPString(tmp));
+           }
+
+           info->add(YCPString("src_type"), YCPString(pkg->sourcePkgType()));
+       }
+       else
+       {
+           y2error("%s is not a srcpackage", item->name().c_str() );
+       }
+    }
     // product specific info
     else if( req_kind == "product" ) {
        zypp::Product::constPtr product = boost::dynamic_pointer_cast<const 
zypp::Product>(item.resolvable());
@@ -564,6 +593,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;
     }


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to