Clayton Craft
6f05222018
filelist/modules: add support for directories in .modules files
...
This is kinda janky, passing both a list of modules and a directory path
is just because we support modules in deviceinfo and in directory file
lists... Maybe one day we can move away from having modules in the
deviceinfo...
2023-02-21 00:45:58 -08:00
Clayton Craft
bd09de9232
archive: accept a FileLister in the AddItems method
2023-02-21 00:45:58 -08:00
Clayton Craft
22692e48d2
filelist/initramfs: add new type for slurping up file listers
2023-02-21 00:45:58 -08:00
Clayton Craft
6c2f7b972b
filelist/*: implement FileLister in existing types
2023-02-21 00:45:57 -08:00
Clayton Craft
e5002f5750
filelist/FileList: add Import method
2023-02-21 00:45:16 -08:00
Clayton Craft
662f559286
filelist: Add FileList type
...
This adds a new type, FileList, to manage another new type (File). File
contains the mapping of source --> dest for a file or directory.
2023-02-21 00:45:16 -08:00
Clayton Craft
a4be663e13
filelist/*.List(): print to stdout when starting to generate FileList
2023-02-21 00:45:16 -08:00
Clayton Craft
6fdc8937b5
internal/archive: make archiveItem.add private
2023-02-21 00:45:16 -08:00
Clayton Craft
fb52066d8f
filelist/modules: remove postmarketos- from config dir name
2023-02-21 00:45:15 -08:00
Clayton Craft
b7f520cba4
filelist/modules: drop "required modules"
...
Breaking change. These should be provided in /*/modules/* lists
2023-02-21 00:45:15 -08:00
Clayton Craft
b25c9bd390
filelist/hookfiles: add new implementation
2023-02-21 00:45:13 -08:00
Clayton Craft
af3c47c784
filelist/hookscripts: add new implementation
2023-02-21 00:45:13 -08:00
Clayton Craft
1531d7e790
filelist/modules: add new implementation
2023-02-21 00:45:13 -08:00
Clayton Craft
e00e5faf6e
filelist/osksdl: just use fmt.Errorf to create an error
2023-02-21 00:45:12 -08:00
Clayton Craft
5e07b63084
filelist/osksdl: add new implementation
2023-02-21 00:45:12 -08:00
Clayton Craft
95582ee034
misc: add GetFiles and supporting functions
2023-02-18 11:22:26 -08:00
Clayton Craft
e0977b4ac1
misc: add Exists()
2023-02-18 11:22:25 -08:00
Clayton Craft
4176a8a661
misc: add GetKernelVersion()
...
Allows re-using across different packages
2023-02-18 11:22:25 -08:00
Clayton Craft
73fd85f68c
filelist: add FileLister interface
2023-02-18 11:22:25 -08:00
Clayton Craft
7e80107bbe
misc: add TimeFunc()
...
This allows it to be re-used easily when things are broken up into
more packages later.
2023-02-17 14:21:14 -08:00
Clayton Craft
690d008643
internal/{archive,misc}: move from pkgs
...
These should be internal-only to this project
2023-02-09 13:34:06 -08:00