Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #240 from xbt573/main
Browse files Browse the repository at this point in the history
use rpm for openSUSE systems (remove zypper package count)
  • Loading branch information
ad-oliviero authored Sep 21, 2023
2 parents ff20a08 + a08efcf commit c11c487
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@ void* get_pkg(void* argp) { // this is just a function that returns the total of
{PKGPATH "brew", "find $(brew --cellar 2>/dev/stdout) -maxdepth 1 -type d 2> /dev/null | wc -l | awk '{print $1}'", "(brew-cellar)"},
{PKGPATH "brew", "find $(brew --caskroom 2>/dev/stdout) -maxdepth 1 -type d 2> /dev/null | wc -l | awk '{print $1}'", "(brew-cask)"},
{PKGPATH "rpm", "rpm -qa --last 2> /dev/null | wc -l", "(rpm)"},
{PKGPATH "xbps-query", "xbps-query -l 2> /dev/null | wc -l", "(xbps)"},
{PKGPATH "zypper", "zypper -q se --installed-only 2> /dev/null | wc -l", "(zypper)"}};
{PKGPATH "xbps-query", "xbps-query -l 2> /dev/null | wc -l", "(xbps)"}};
#endif
#else
struct package_manager pkgmans[] = {{"/usr/local/bin/brew", "find $(brew --cellar 2>/dev/stdout) -maxdepth 1 -type d 2> /dev/null | wc -l | awk '{print $1}' > /tmp/uwufetch_brew_tmp", "(brew-cellar)"},
Expand Down
2 changes: 0 additions & 2 deletions uwufetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,7 @@ void uwu_pkgman(char* pkgman_name) {
PKGMAN_TO_UWU("flatpak", "fwatpakkies");
PKGMAN_TO_UWU("pacman", "pacnyan");
PKGMAN_TO_UWU("port", "powt");
PKGMAN_TO_UWU("rpm", "rawrpm");
PKGMAN_TO_UWU("snap", "snyap");
PKGMAN_TO_UWU("zypper", "zyppew");
#undef PKGMAN_TO_UWU
}

Expand Down

0 comments on commit c11c487

Please sign in to comment.