kisslinux / kiss

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

kiss: Support two-way symlinked dependencies. #164

Closed dylanaraps closed 4 years ago

dylanaraps commented 4 years ago

Related #163

@konimex Please let me know your opinion on this.

Correctly handles:

TODO:

konimex commented 4 years ago

Have you tested the case if there are more than one dependency (and possibly more than one "provides" in a dependency file)?

Also:

Package manager must also update depends files to reflect the change (similar to fixdeps()).

This should be done on $pkg_db, right?

Otherwise, looks good.

dylanaraps commented 4 years ago

Have you tested the case if there are more than one dependency (and possibly more than one "provides" in a dependency file)?

Yes. Works fine.

This should be done on $pkg_db, right?

Yup.

konimex commented 4 years ago

Alright. I don't have any more test case so that looks good from me. :+1:

dylanaraps commented 4 years ago

Also turns out that this requires no further code for installation to fully function. It does require code in pkg_remove (Example: pigz is removable even if it is a runtime dependency for busybox as it depends on gzip).

dylanaraps commented 4 years ago

This turned out to be unworkable. Working on another method now. (Syncing up removal/install dependencies is difficult).