From 57a0e4521841acacd47bf0bf22146679c3daa519 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 13 Oct 2013 00:09:21 +0200 Subject: [PATCH] distroquery: move group to top tags in source and package packages --- src/distroquery.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/distroquery.c b/src/distroquery.c index 541edaa..04d943a 100644 --- a/src/distroquery.c +++ b/src/distroquery.c @@ -385,15 +385,16 @@ void printPackageData() { while (sqlite3_step(statement) == SQLITE_ROW) { numresults++; printf("

%s
 " - "
%s

" - "%s %s-%s
%s
Group: %s
Size: %s", + "
%s
 " + "
 %s 

" + "%s %s-%s
%s
Size: %s", query_arch, - query_repositories[i]->tag, + ct->tag, + sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "groupdescr")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "version")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "release")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "summary")), - sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "groupdescr")), humanSize(sqlite3_column_int(statement,sqlite3_find_column_id(statement, NULL, "size")), &strsize)); printf("
Source package:"); @@ -485,15 +486,16 @@ void printSourcePackageData() { while (sqlite3_step(statement) == SQLITE_ROW) { numresults++; printf("

Source
 " - "
%s

" - "%s %s-%s
%s
Group: %s
Maintainer: %s
License: %s
URL: %s
Size: %s" + "
%s
 " + "
 %s 

" + "%s %s-%s
%s
Maintainer: %s
License: %s
URL: %s
Size: %s" "

%s

", - query_repositories[i]->tag, + ct->tag, + sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "groupdescr")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "version")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "release")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "summary")), - sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "groupdescr")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packagers", "name")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "license")), sqlite3_column_text(statement,sqlite3_find_column_id(statement, NULL, "url")),