Skip to content

Commit 9541950

Browse files
Use rpm query all with skip integrity & signature checks for faster package fetching
1 parent db468f1 commit 9541950

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/fetch.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,7 @@ void *os()
289289
info.col7 =
290290
BBLUE "\\ \\" BWHITE "__/ | " BBLUE;
291291
info.col8 = BBLUE " \\" BWHITE "(_____/" BBLUE;
292-
info.getPkgCount =
293-
"[[ $(which sqlite3 2>/dev/null) && $? -ne "
294-
"1 ]] && (sqlite3 "
295-
"/var/lib/rpm/rpmdb.sqlite \"select * from "
296-
"Name\"|wc -l) || rpm -qa | wc -l";
292+
info.getPkgCount = "rpm -qa --nodigest --nosignature | wc -l";
297293
} else if (strncmp(osname, "Gentoo", 6) == 0) {
298294
info.col1 = BMAGENTA " _-----_ \n";
299295
info.col2 = BMAGENTA " ( \\ ";

0 commit comments

Comments
 (0)