1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-19 13:00:05 -07:00
Commit Graph

1260 Commits

Author SHA1 Message Date
Dylan Araps
07ad1dcf73
kiss-depends: clearer 2020-09-09 13:41:58 +03:00
Dylan Araps
ba971ba449
kiss-depends: fix pwd 2020-09-09 13:40:32 +03:00
Dylan Araps
53d28cc0a5
kiss-export: clean up 2020-09-09 13:39:25 +03:00
Dylan Araps
9e38bf7d03
kiss-depends: changes
- whitespace is normalized between fields.
- less code.
2020-09-09 13:31:27 +03:00
dylan
43a2476f7e
Merge pull request #186 from kisslinux/rm_etc
kiss: Add handling of /etc/ files to removal action.
2020-09-09 10:49:02 +03:00
Dylan Araps
66e6c0fe34
kiss: Add handling of /etc/ files to removal action.
If the user has modified the file in /etc/, it will not be removed
and a message will be printed to the screen. If the file is
unmodified, it will be removed like any other.

This uses the etcsums file for comparison of checksums. The file
is also used during installation handling of files in /etc/.
2020-09-08 22:35:49 +03:00
Dylan Araps
e2b292bc0b
kiss: split usage 2020-09-08 17:07:55 +03:00
Dylan Araps
6ba7b61bfb
kiss: remove occurrence of blank checksum files when checksums aren't needed. Closes #185 2020-09-08 14:56:19 +03:00
Dylan Araps
6998e9f58c
kiss: fix hang when no packages installed during conflict resolution. Closes #182 2020-09-08 14:30:38 +03:00
dylan
e0e8b1d9b6
Merge pull request #183 from jedahan/contrib-cleanup
Contrib cleanup
2020-09-06 11:34:08 +03:00
Jonathan Dahan
b58d4d3c95 Remove extraneous period. 2020-09-04 13:32:29 -04:00
Jonathan Dahan
d94c811e7f Use full kiss subcommands for readability and safety 2020-09-04 13:32:19 -04:00
Jonathan Dahan
fb3ac1f7e9 Remove reference to crux in comments for those unfamiliar with it. 2020-09-04 13:31:30 -04:00
Dylan Araps
0f054313e3
kiss-link: Fix bug. Closes #180 2020-09-03 10:17:29 +03:00
Dylan Araps
cf722ec4ba
docs: update 2020-09-02 01:53:47 +03:00
dylan
a970d1fd02
Merge pull request #179 from illiliti/update_sls_syntax
kiss: update sls syntax
2020-09-02 01:55:29 +03:00
illiliti
42163ae1f2 kiss: update sls syntax 2020-09-01 07:19:02 +03:00
dylan
e9197fe881
Merge pull request #178 from onodera-punpun/master
Add CRUX style usage to contrib scripts
2020-08-31 20:07:40 +03:00
Dylan Araps
3b251b96b6
kiss: Fix compatibility with pre-change checksums 2020-08-31 10:54:39 +03:00
Camille Scholtz
d44c509b37 Add CRUX style usage using the current directory as the name of the package to be operated on 2020-08-30 22:28:01 +02:00
Dylan Araps
00671aaa7e
kiss-revdepends: Work even if package is uninstalled 2020-08-30 14:36:43 +03:00
Dylan Araps
942f36b672
kiss-chbuild: drop for now. full utility planned 2020-08-30 13:14:55 +03:00
dylan
2c3b2aa821
Merge pull request #177 from illiliti/as_root_sls
kiss: add support for sls
2020-08-30 10:30:24 +03:00
Dylan Araps
be40eb0114
docs: update 2020-08-30 10:25:24 +03:00
Dylan Araps
1c1175933f
kiss: Fix checksum generation. 2020-08-30 10:24:58 +03:00
illiliti
f0f3825419 automatically discover sls 2020-08-30 01:42:15 +03:00
illiliti
0d5fc4a2b6 kiss: add support for sls 2020-08-30 01:14:25 +03:00
Dylan Araps
76f3b72479
docs: update 2020-08-28 01:08:42 +03:00
Dylan Araps
fed12ab37f
docs: update 2020-08-20 18:14:21 +03:00
Dylan Araps
fefd0d7b28
kiss: fix etcsums hang. Closes #176 2020-08-20 18:14:05 +03:00
Dylan Araps
d1c0bb0dba
docs: update 2020-08-20 15:15:40 +03:00
Dylan Araps
18c79222b8
kiss: fix handling of /etc. closes #175 2020-08-20 15:15:16 +03:00
Dylan Araps
6e26703abb
kiss-orphans: drop pkgconf exception 2020-08-20 11:34:37 +03:00
Dylan Araps
dba5144024
docs: update 2020-08-18 09:21:37 +03:00
Dylan Araps
d0f4358f84
minor cleanup 2020-08-15 10:27:35 +03:00
Dylan Araps
93b598d5fa
kiss: stop making build file modifiable by hooks
This was half-assed. I'd much prefer we keep things simple and users
use repositories for this purpose. Either full or partial forks. This
is "proper" and stores the build configuration
2020-08-14 10:24:05 +03:00
Dylan Araps
7cfce11abc
fix shellcheck 2020-08-13 10:35:59 +03:00
Dylan Araps
d6917d5fe1
kiss: Stop showing Git repositories in checksums
This is a backwards compatible change. The package manager will
for the time being /ignore/ checksums lines containing Git
repositories.

These aren't checksums and have no business living in the checksums
file. This file is now strictly for checksums. In the coming months,
this special handling will be lifted.
2020-08-13 10:31:19 +03:00
Dylan Araps
99f61fc340
kiss: add support for directories and absolute file paths as sources
This adds support for both absolute and relative directories in
sources files. Relative file sources have always been supported,
this just extends it to directories.

Absolute paths to directories and files in sources is totally new.

Directories will have their /contents/ copied to the initial build
directory. The second field in the sources file can be used to set
destination location.

Checksums will not be validated for directories of any type. Absolute
file paths do have their checksums validated.

Notes:

The package manager will check to see if the source is a directory
or not. There is no need to have a trailing forward slash (though it
might make sense to enforce this anyway, we'll see).
2020-08-13 01:07:41 +03:00
Dylan Araps
fecf4995f8
kiss: drop filenames from checksums files
With this change, checksums generated by the package manager will no
longer contain the second field (the basename of the file). The second
field is quite useless as ordering is already fixed.

This change is backwards compatible and existing checksums files will
containue to function as normal. As checksums are regenerated (with
updates to packages), the new format will be used.

The compatibility works via checking /only the first column/ in each
checksums file. This is the only part of the file which must match
1:1 as ordering is always the same.

Notes about etcsums:

This change also affects the etcsums file which is used for the
3-way checksum verification for files in /etc/.

Existing etcsums will simply be invalidated with the safest path chosen
(.new file is created) until they are regenerated via a package build.

Ordering is now fixed inside etcsums files. This makes parsing them
faster and more reliable.

This also fixes a theoretical bug with naming conflicts during parsing
of etcsums.
2020-08-13 00:23:43 +03:00
Dylan Araps
487358a047
docs: update 2020-08-12 00:21:34 +03:00
Dylan Araps
f552a75427
kiss: Resolve path to root even if in subshell 2020-08-12 00:20:58 +03:00
Dylan Araps
64e77c91e5
kiss: add repository update hook
The package manager will look for an executable called 'update' in the
repository's root directory. If a KISS repository is one of many
children in a git repository, the hook will only be called once.

This hook is run /after/ a repository has been updated by the package
manager. If your repository is not using git, the hook is run immediately.

If the hook fails (exits non-zero), the package manager will also fail.
Hooks can be written in any language. No arguments are given to the executable.

Closes #174
2020-08-11 21:24:43 +03:00
Dylan Araps
a15c6b74fb
docs: update 2020-08-11 15:50:08 +03:00
Dylan Araps
4e34ad6a6a
kiss: don't automatically pull down submodules when using git sources
This should be done in the build file on an opt-in basis.
2020-08-11 15:49:15 +03:00
Dylan Araps
5df9fbb6b1
docs: update 2020-08-11 11:00:27 +03:00
Dylan Araps
7695d003f5
kiss-chroot: Removed old envar 2020-08-11 10:59:51 +03:00
Dylan Araps
197d8b4329
docs: update 2020-08-11 10:48:51 +03:00
Dylan Araps
45f8562c8e
kiss: allow KISS_PATH to be unset.
This is related to the tarball and default repository location
changes which leave KISS_PATH unset /by default/.

There's no real reason for the package manager to die here. When
no repositories are enabled (or no package is found in KISS_PATH),
the package manager uses /var/db/kiss/installed as a fallback.

Related to: https://github.com/kisslinux/repo/issues/209
2020-08-11 10:45:51 +03:00
Dylan Araps
5c6898f143
kiss-chroot: Allow some things to fail. 2020-07-31 09:53:52 +03:00