-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep track of files installed by packages #3
Comments
Suggested resolution: ship a list of files and dirs that are going to be created with every fpkg file and it would serve as install and delete list Suggestion: split created files into categories, that way stuff like configs won't be deleted because of accidental removal |
So sth like (on a single line): FILENAME/DIRNAME IN TAR:PATH ON FILESYSTEM:TYPE Assuming ':' is the delimeter. |
I meant rather this kind of file: files: { And with this categories I meant: necessary { config { misc { |
Shell scripts work much easier with data on a single line, rather than JSON-style data. We should settle on a file list format before going any further imo. I propose the following: There will be 2 lists of files - one for config files (not gonna be deleted in uninstall unless forced to) and one for regular files Each like of the file will be as follows: PATH_IN_TARBALL:PATH_ON_FILESYSTEM Ez pz |
I'd propose this layout:
We'd enforce strict packaging practices in terms of naming of dirs and essential files |
How do you imagine that working with real filenames? I just can't comprehend what's a filename and what's a category description |
Just like C programs have stuff like MAKEFILE or LICENSE that's just always there, we'd also have some fixed names (My example was rather provisional) |
Aha so these are the fixed names you propose |
Not necessarily, we'll discuss the names after we'll set the way of creating of fpkgs |
Bc packages almost always contain more than a single file, would be good to have a place where to keep track of all the files installed by various packages.
For example: we create a dir at /etc/fpkg/; there, we will have configs etc, but also a subdir 'packages'; in this subdir, there will be a directory with the package name, which will hold a file named
fileslist
or sth, where on each line there will be the full path to the installed files from this package.I think this will make removal cleaner. Also, the package dir can hold other things like metadata.
The text was updated successfully, but these errors were encountered: