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")),