diff --git a/src/distroquery.c b/src/distroquery.c index 67c4c3c..1d9376b 100644 --- a/src/distroquery.c +++ b/src/distroquery.c @@ -575,6 +575,7 @@ void printPackageData() { struct configTag* ct = findRepositoryByTag(query_repository); humanDate strdate; sizeString strsize; + FILE *file; printf("repository_dir, query_package); + if (file = fopen(buffer, "r")) { + fclose(file); + snprintf(buffer, PATH_MAX, "%s%s/specs/%s.spec", ct->showfile_prefix, ct->download_dir, query_package); + printf("
%s: %s.spec", _("Specfile"), buffer, query_package); + } else { + printf("
%s: %s.spec", _("Specfile"), query_package); + } + printf("
%s: %s", _("Maintainer"), sqlite3_column_text(stmt1,sqlite3_find_column_id(stmt1, "packagers", "name"))); printf("
%s: %s", _("Build date"), simpleTimeToHuman(sqlite3_column_int(stmt1,sqlite3_find_column_id(stmt1, NULL, "buildtime")), (humanDate *) & strdate)); @@ -754,6 +764,7 @@ void printSourcePackageData() { struct configTag* ct = findRepositoryByTag(query_repository); humanDate strdate; sizeString strsize; + FILE *file; printf("
%s:", _("Developers details")); + printf("
%s: %s", _("Maintainer"), sqlite3_column_text(statement,sqlite3_find_column_id(statement, "packagers", "name"))); printf("
%s: %s", _("Build date"), simpleTimeToHuman(sqlite3_column_int(statement,sqlite3_find_column_id(statement, NULL, "buildtime")), (humanDate *) & strdate));