Skip to content

Commit

Permalink
Merge pull request #84 from shundhammer/huha-drop-rpm-groups
Browse files Browse the repository at this point in the history
Removed Leftovers of Dropping RPM Group Tags
  • Loading branch information
shundhammer committed Feb 17, 2020
2 parents f9c4f24 + f3ea192 commit e295e0b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 32 deletions.
2 changes: 1 addition & 1 deletion VERSION.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SET( VERSION_MAJOR "2" )
SET( VERSION_MINOR "47" )
SET( VERSION_PATCH "2" )
SET( VERSION_PATCH "3" )
SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )

##### This is need for the libyui core, ONLY.
Expand Down
2 changes: 1 addition & 1 deletion package/libyui-qt-pkg-doc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
%define parent libyui-qt-pkg
%define so_version 11
Name: %{parent}-doc
Version: 2.47.2
Version: 2.47.3
Release: 0
Summary: Libyui-qt-pkg documentation
License: LGPL-2.1-only OR LGPL-3.0-only
Expand Down
6 changes: 6 additions & 0 deletions package/libyui-qt-pkg.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 17 09:32:16 UTC 2020 - Stefan Hundhammer <shundhammer@suse.com>

- Removed leftovers of dropping support for RPM group tags (bsc#1163594)
- 2.47.3

-------------------------------------------------------------------
Thu Jan 16 09:54:05 UTC 2020 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/libyui-qt-pkg.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%define libyui_qt_devel_version libyui-qt-devel >= 2.50.1
%define libzypp_devel_version libzypp-devel >= 17.21.0
Name: libyui-qt-pkg
Version: 2.47.2
Version: 2.47.3
Release: 0
Summary: Libyui - Qt Package Selector
License: LGPL-2.1-only OR LGPL-3.0-only
Expand Down
24 changes: 0 additions & 24 deletions src/YQPkgTechnicalDetailsView.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "YQPkgTechnicalDetailsView.h"
#include "YQi18n.h"
#include "utf8.h"
//Added by qt3to4:
#include <QList>

using std::list;
using std::string;
Expand Down Expand Up @@ -125,26 +123,6 @@ YQPkgTechnicalDetailsView::authorsListCell( ZyppPkg pkg ) const
}


QString
YQPkgTechnicalDetailsView::formatRpmGroup( ZyppPkg pkg ) const
{
QStringList groups = fromUTF8( pkg->group() ).split( '/', QString::KeepEmptyParts );

// Translate group path components

QStringList translated;

for ( QStringList::const_iterator it = groups.begin();
it != groups.end();
++it )
{
translated.append( QString::fromUtf8( dgettext( "rpm-groups", (*it).toUtf8() ) ) );
}

return translated.join( "/" );
}


QString
YQPkgTechnicalDetailsView::simpleTable( ZyppSel selectable,
ZyppPkg pkg )
Expand All @@ -158,7 +136,6 @@ YQPkgTechnicalDetailsView::simpleTable( ZyppSel selectable,
*pkg == selectable->installedObj() ?
row( hcell( _( "Install Time:" ) ) + cell( pkg->installtime() ) ) : "";

html += row( hcell( _( "Package Group:" ) ) + cell( formatRpmGroup( pkg ) ) );
html += row( hcell( _( "License:" ) ) + cell( pkg->license() ) );
html += row( hcell( _( "Installed Size:" ) ) + cell( pkg->installSize().asString() ) );
html += row( hcell( _( "Download Size:" ) ) + cell( pkg->downloadSize().asString() ) );
Expand Down Expand Up @@ -196,7 +173,6 @@ YQPkgTechnicalDetailsView::complexTable( ZyppSel selectable,
html += row( hcell( _( "Version:" ) ) + cell( p1->edition().asString() ) + cell( p2->edition().asString() ) );
html += row( hcell( _( "Build Time:" ) ) + cell( p1->buildtime() ) + cell( p2->buildtime() ) );
html += row( hcell( _( "Install Time:" ) ) + cell( p1->installtime() ) + cell( p2->installtime() ) );
html += row( hcell( _( "Package Group:" ) ) + cell( formatRpmGroup( p1 ) ) + cell( formatRpmGroup( p2 ) ) );
html += row( hcell( _( "License:" ) ) + cell( p1->license() ) + cell( p2->license() ) );
html += row( hcell( _( "Installed Size:" ) ) + cell( p1->installSize().asString() ) + cell( p2->installSize().asString() ) );
html += row( hcell( _( "Download Size:" ) ) + cell( p1->downloadSize().asString() ) + cell( p2->downloadSize().asString() ) );
Expand Down
5 changes: 0 additions & 5 deletions src/YQPkgTechnicalDetailsView.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ class YQPkgTechnicalDetailsView : public YQPkgGenericDetailsView
* Returns a string containing HTML code for a package's authors list.
**/
QString authorsListCell( ZyppPkg pkg ) const;

/**
* Format an RPM group. Retrieves the translated ( ! ) version.
**/
QString formatRpmGroup( ZyppPkg pkg ) const;
};


Expand Down

0 comments on commit e295e0b

Please sign in to comment.