Hello community,
here is the log from the commit of package yast2-qt
checked in at Tue Mar 28 17:06:33 CEST 2006.
--------
--- /work/SRC/all/yast2-qt/yast2-qt.changes 2006-03-27 17:08:07.000000000 +0200
+++ /work/src/done/STABLE/yast2-qt/yast2-qt.changes 2006-03-28 16:20:01.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Mar 28 16:15:20 CEST 2006 - sh@suse.de
+
+- V 2.13.41
+- Show language specific packages in "languages" filter
+
+-------------------------------------------------------------------
Old:
----
yast2-qt-2.13.40.tar.bz2
New:
----
yast2-qt-2.13.41.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.ay0gSx/_old 2006-03-28 17:06:17.000000000 +0200
+++ /var/tmp/diff_new_pack.ay0gSx/_new 2006-03-28 17:06:17.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-qt (Version 2.13.40)
+# spec file for package yast2-qt (Version 2.13.41)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-qt
-Version: 2.13.40
+Version: 2.13.41
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.13.40.tar.bz2
+Source0: yast2-qt-2.13.41.tar.bz2
prefix: /usr
BuildRequires: boost-devel curl-devel dbus-1-devel docbook-xsl-stylesheets doxygen hal-devel libdrm-devel libjpeg-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer qt3-devel rpm-devel sgml-skel update-desktop-files yast2-core-devel yast2-devtools
Summary: YaST2 - Graphical User Interface
@@ -42,7 +42,7 @@
Stefan Hundhammer
%prep
-%setup -n yast2-qt-2.13.40
+%setup -n yast2-qt-2.13.41
%build
%{prefix}/bin/y2tool y2autoconf
@@ -80,6 +80,9 @@
%doc %{prefix}/share/doc/packages/yast2-qt
%changelog -n yast2-qt
+* Tue Mar 28 2006 - sh@suse.de
+- V 2.13.41
+- Show language specific packages in "languages" filter
* Mon Mar 27 2006 - sh@suse.de
- V 2.13.40
- Fixed bug #156590: No way to reset ignored dependency problems
++++++ yast2-qt-2.13.40.tar.bz2 -> yast2-qt-2.13.41.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.40/VERSION new/yast2-qt-2.13.41/VERSION
--- old/yast2-qt-2.13.40/VERSION 2006-03-27 15:44:03.000000000 +0200
+++ new/yast2-qt-2.13.41/VERSION 2006-03-28 16:15:14.000000000 +0200
@@ -1 +1 @@
-2.13.40
+2.13.41
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.40/src/YQPkgLangList.cc new/yast2-qt-2.13.41/src/YQPkgLangList.cc
--- old/yast2-qt-2.13.40/src/YQPkgLangList.cc 2006-03-15 18:59:05.000000000 +0100
+++ new/yast2-qt-2.13.41/src/YQPkgLangList.cc 2006-03-28 16:01:22.000000000 +0200
@@ -105,10 +105,50 @@
if ( lang )
{
-#ifdef FIXME_missing_in_zypp
-#else
- y2warning( "Missing: Get packages for a zypp::Language" );
-#endif
+ string currentLang = lang->name();
+
+ //
+ // Iterate over all selectables in pool
+ //
+
+ for ( ZyppPoolIterator it = zyppPkgBegin();
+ it != zyppPkgEnd();
+ ++it )
+ {
+ ZyppObj zyppObj = (*it)->theObj();
+
+ if ( zyppObj )
+ {
+ //
+ // Iterate over all "freshens" dependencies of this object
+ //
+
+ zypp::CapSet freshens = zyppObj->dep( zypp::Dep::FRESHENS );
+
+ for ( zypp::CapSet::const_iterator cap_it = freshens.begin();
+ cap_it != freshens.end();
+ ++cap_it )
+ {
+ if ( (*cap_it).index() == currentLang ) // obj freshens this language
+ {
+ ZyppPkg pkg = tryCastToZyppPkg( zyppObj );
+
+ if ( pkg )
+ {
+ y2debug( "Found pkg %s for lang %s",
+ pkg->name().c_str(), currentLang.c_str() );
+
+ emit filterMatch( *it, pkg );
+ }
+ else
+ {
+ y2warning( "Found non-pkg obj %s for lang %s",
+ pkg->name().c_str(), currentLang.c_str() );
+ }
+ }
+ }
+ }
+ }
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...