kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
465 stars 62 forks source link

fixdeps fails if "depends" file does not exists #132

Closed zenyusy closed 4 years ago

zenyusy commented 4 years ago

if a package has no "depends" file in repo, yet it actually depends on something. the diff-patch method in pkg_fixdeps() doesn't work.

https://github.com/kisslinux/kiss/blob/041d8906c728eae486bd94aa3a275c6768dfb062/kiss#L428

just try echo 123 | diff - nosuchfile 2>/dev/null, which has no output. (btw, sort, as part of the pipeline chain, may complain "standard output: Broken pipe" due to this)

zenyusy commented 4 years ago

welcome back dylan, long time no see XD

why not https://github.com/kisslinux/kiss/blob/7f22697bdc844948f4c684480b9d95239cb2aa87/kiss#L444-L445

dylanaraps commented 4 years ago

Thanks, added. :)