Daniele Rondina
8f0c528c08
Create helpers.UntarProtect for handle protected files
...
Currently, it's used the archive.ReplaceFileTarWrapper
that requite a []byte of the files replaced. This is not
a good idea if files are big and instead could be better
in the near future reimplement ReplaceFileTarWrapper with
a callback that return io.Reader instead of []byte.
If a protected file is already present on target rootfs
it is created a file with the same prefix used in Gentoo:
._cfgXXXX_<filename>
2020-06-02 11:08:37 +02:00
Daniele Rondina
1d8a6174bb
Drop duplicate code for general.same_owner
2020-05-30 16:51:10 +02:00
Daniele Rondina
9e7c7e69f8
Review configuration file parsing logic
...
Luet support now these priorities on read configuration file:
- command line option (if available)
- $PWD/.luet.yaml
- $HOME/.luet.yaml
- /etc/luet/luet.yaml
2020-05-30 16:46:29 +02:00
geaaru
8c4f5b2911
Merge pull request #113 from mudler/annotations
...
Add Annotations to package spec
2020-05-23 10:52:32 +02:00
Daniele Rondina
dba6c361c2
Move helpers/cli to cmd/helpers
2020-05-23 08:51:33 +02:00
Ettore Di Giacinto
4197d7af61
Add upgrade by using only the SAT core
...
- Adds upgrade --universe and upgrade --universe --clean. It will
attempt to bring the system as much close as the content available in
the repositories. It differs from a standard upgrade which checks
directly that what is pulled in doesn't conflict with the system. In
this new way, we just query the SAT solver to decide that on our
behalf.
- Add uninstall --full-clean. It uses only the SAT solver to uninstall
the package and it will drop as many packages as required (including
revdeps of packages too.
2020-05-22 21:20:58 +02:00
Ettore Di Giacinto
bfde9afc7f
Add Nodeps and Full options to upgrade
2020-05-22 21:20:57 +02:00
Daniele Rondina
e38a4b3d9b
Use DefaultPackageSanitized struct for write specs
2020-05-20 09:59:48 +02:00
Ettore Di Giacinto
c0b432befa
Add development version
2020-05-16 22:46:29 +02:00
Ettore Di Giacinto
8e029a8ee4
Tag 0.7.8
2020-05-16 22:46:04 +02:00
Daniele Rondina
44213894bc
Add commands aliases
2020-05-10 20:24:08 +02:00
Daniele Rondina
a7d1381cb5
cmd/create-repo: Add support for multiple trees
2020-05-10 20:18:10 +02:00
Daniele Rondina
2cb79c0071
cmd/build: Add support for multiple trees
2020-05-10 20:02:12 +02:00
Daniele Rondina
13df161fc6
logging: permit to disable color and emoji
...
Now it's possible disable color and emoji on standard
output with:
$> luet <cmd> --color=false --emoji=false
Hereinafter, the list of changes:
* Added logging option logging.color (default true)
* Added logging option logging.enable_emoji (default true)
* Added persistent flag --color
* Added persistent flag --emoji
2020-05-09 10:08:21 +02:00
Daniele Rondina
fe5ab9246f
Added option for enable log to file.
...
Now it's possible logging to file is handled by the enable_logfile
option and by the path.
From cli is now possible:
* enable log to file with the option --enable-logfile
* modify the logfile path with the option --logfile/-l <path>
2020-05-09 10:05:34 +02:00
Daniele Rondina
993bcf9adf
tree/validate: Add support for in memory cache with solver check
2020-05-08 20:05:21 +02:00
Ettore Di Giacinto
1b529ea8c5
Add development version
2020-05-03 13:46:53 +02:00
Ettore Di Giacinto
2c2e6065d9
Tag 0.7.7
2020-05-03 13:46:35 +02:00
Ettore Di Giacinto
a1d8ef1422
Allow to partially uninstall a package graph, make uninstall --full optional
2020-05-03 13:04:34 +02:00
Ettore Di Giacinto
8dd756ec96
Add development version
2020-05-02 14:51:08 +02:00
Ettore Di Giacinto
1b6ffac7bd
Tag 0.7.6
2020-05-02 14:50:29 +02:00
geaaru
878e6d7b9c
Merge pull request #103 from mudler/tmpdir-cleanup
...
Tmpdir cleanup
2020-05-02 09:20:01 +02:00
Daniele Rondina
60d9017952
CleanupTmpDir() is not Fatal
2020-05-01 15:27:19 +02:00
Ettore Di Giacinto
b13828c883
Add development version
2020-04-30 22:50:37 +02:00
Ettore Di Giacinto
886cbd0036
Tag 0.7.5
2020-04-30 22:50:12 +02:00
Ettore Di Giacinto
b91288153a
Make tree validation cmd concurrent
2020-04-30 21:48:46 +02:00
Daniele Rondina
11944873ea
Integrate tmpdir_base params and tmpdirs cleanup
2020-04-30 20:29:28 +02:00
Ettore Di Giacinto
fb3c568051
Add development version
2020-04-24 19:46:35 +02:00
Ettore Di Giacinto
14bc26ee22
Tag 0.7.4
2020-04-24 19:46:14 +02:00
Ettore Di Giacinto
18ccdbd6a9
Add --revdep to luet pkglist
...
Include also the path in the results
2020-04-24 19:05:47 +02:00
Ettore Di Giacinto
7d960b733d
Add --revdep to luet search
...
Fixes #52
2020-04-24 19:05:24 +02:00
Ettore Di Giacinto
919b2c3cfc
Don't print misleading messages to the user
2020-04-24 19:04:21 +02:00
Ettore Di Giacinto
4cee27da7f
Fixup box CLI params and consume new box options
2020-04-20 23:03:03 +02:00
Ettore Di Giacinto
98876c8f20
Add support for env and hostmounts in box
2020-04-20 23:01:49 +02:00
Ettore Di Giacinto
20aa7c89f8
Use different result structs in pkglist
2020-04-19 11:37:23 +02:00
Ettore Di Giacinto
937609a9f4
Add machine readable output to pkglist
2020-04-19 11:24:41 +02:00
Ettore Di Giacinto
a3f0d848c9
Add builtime search to tree pkglist
2020-04-19 10:53:05 +02:00
Ettore Di Giacinto
62381ed46d
Structure search machine readable output
2020-04-19 10:31:07 +02:00
Ettore Di Giacinto
ac871cb0a3
Add --output option to search
...
In such way it can be parsed by scripts more easily.
It also disable the spinner based on loglevel
Fixes #92
2020-04-18 23:22:00 +02:00
Ettore Di Giacinto
82cd0e17b6
Enhance search output
2020-04-18 22:51:27 +02:00
Ettore Di Giacinto
1d5ce53443
Add luet box command
...
It adds only the 'exec' subcommand to spawn processes in custom boxes
Relates to #45
2020-04-18 11:43:14 +02:00
Ettore Di Giacinto
333b9cc023
Add reclaim to CLI
...
Relates to #86
2020-04-13 19:33:30 +02:00
Ettore Di Giacinto
32cf132a0c
Drop downloadOnly bool from Installer cli options
2020-04-13 19:32:50 +02:00
Daniele Rondina
1b8176777a
cmd/search: Add filter to result
2020-04-13 15:50:45 +02:00
Ettore Di Giacinto
2f3eabc3ca
Annotate git hash and time in displayed version
2020-04-12 14:37:49 +02:00
Ettore Di Giacinto
f987ee9fa0
Handle errors from os/user
...
We use it to generate defaults, if error is found, we imply preserve
permissions
2020-04-11 20:05:56 +02:00
Ettore Di Giacinto
0fe2a8c950
Add development version
2020-04-11 18:30:11 +02:00
Ettore Di Giacinto
9704992c43
Tag 0.7.3
2020-04-11 18:29:46 +02:00
Ettore Di Giacinto
d8919f7250
Check if dependencies are selectors in validate
2020-04-10 20:00:37 +02:00
Daniele Rondina
42c380029c
cmd/tree/validate: Fix order analysis
2020-04-10 17:41:27 +02:00