package management discussion - Programming On Unix

Users browsing this thread: 2 Guest(s)
sth
Long time nixers
(26-05-2020, 07:41 PM)sth Wrote: right now this is what my manifest files look like:
---------------------------------------------------------------------------------
name: mypackage
version: 0.1
description: A short description of the package
{dir} /path/to/destination/folder 0755
{dir} /path/to/configdir 0600
file1 /path/to/destination/folder/file1 0755
file2 /path/to/other/file/folder/file2 0644
file3 /path/to/config/file3 0600
---------------------------------------------------------------------------------

so what I was thinking is adding a line like
depends: extpkg otherpkg differentpkg

then, during the install process, before it installs the requested package, read that line and run the install function for each of those (which would recursively take care of any dependencies of those dependencies). but i have a feeling that might be oversimplifying things or ignoring potential pitfalls.

EDIT: now that i look at that manifest I realize i need to update my docs/manifest_example because this is totally not the current working format :P but it gets the point across.
what i think i may do with my python rewrite is do a recursive dependency check, then create a list of unique dependencies as far as the chain goes that are not already located on the local system before passing that to the install function, just so as not to waste any time checking for duplicates or dependencies that are already satisfied.


Messages In This Thread
package management discussion - by sth - 26-05-2020, 05:55 PM
RE: package management discussion - by z3bra - 26-05-2020, 07:00 PM
RE: package management discussion - by sth - 26-05-2020, 07:18 PM
RE: package management discussion - by z3bra - 26-05-2020, 07:35 PM
RE: package management discussion - by sth - 26-05-2020, 07:41 PM
RE: package management discussion - by sth - 26-05-2020, 09:41 PM
RE: package management discussion - by venam - 27-05-2020, 01:51 AM
RE: package management discussion - by z3bra - 27-05-2020, 03:49 PM
RE: package management discussion - by sth - 28-05-2020, 06:05 PM
RE: package management discussion - by z3bra - 28-05-2020, 08:10 PM
RE: package management discussion - by jkl - 29-05-2020, 03:58 AM
RE: package management discussion - by z3bra - 29-05-2020, 05:18 AM
RE: package management discussion - by ckester - 29-05-2020, 05:24 PM
RE: package management discussion - by movq - 31-05-2020, 02:47 AM
RE: package management discussion - by z3bra - 31-05-2020, 04:14 AM
RE: package management discussion - by sth - 31-05-2020, 05:28 PM
RE: package management discussion - by jkl - 01-06-2020, 06:06 AM
RE: package management discussion - by movq - 01-06-2020, 02:26 PM
RE: package management discussion - by eadwardus - 05-07-2020, 02:32 PM