eepykate / fet.sh

🐢 a fetch written in posix shell without any external commands (sponsored by https://git.io/kiwmi)
https://github.com/buffet/kiwmi
ISC License
366 stars 22 forks source link

Incorrect number of packages on Arch #19

Closed Barbaross93 closed 4 years ago

Barbaross93 commented 4 years ago

Hello,

Thanks for sharing this fetch script! I have noticed one discrepancy however; it looks like the package count for Arch linux is slightly off; I don't know POSIX at all but it looks like the relevant code in fet.sh is counting all files and directories rather than just the directories of the package. On my system, my /var/lib/pacman/local/ contains a ALPM_DB_VERSION file which I don't think is a part of any singular package.

eepykate commented 4 years ago

It's off by one, and that's not enough for me to care about.

eepykate commented 4 years ago

For reference, void is off by 8 on my friend's system, but there's no easy fix for that because some files just aren't in the dir.

eepykate commented 4 years ago

Eh, whatever, all arch packages are lowercase, it should be as simple as replacing /* with /[a-z0-9]*