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

2000 Commits

Author SHA1 Message Date
dylan
242ef0e02a
Update README 2024-05-03 14:01:46 +01:00
phoebos
1153eed5fc
kiss-outdated: update some remote names 2024-04-17 23:52:13 +01:00
phoebos
a8d5e0f73f
kiss-outdated: change curl's user-agent from the default
Repology seems to have started to reply to curl with 403, but changing
the user-agent fixes it.
2024-04-17 23:45:49 +01:00
phoebos
aff0d16469
kiss: 6.1.1 2024-03-17 16:04:23 +00:00
aabacchus
6228a93102 kiss: correct name of queue-status hook (#127)
In the documentation at
https://github.com/kisslinux/website/blob/master/site/wiki/package-manager.txt#L197,
and in kiss itself at
https://github.com/kisslinux/kiss/blob/master/kiss#L933, the hook
executed for each package in the queue is named "queue-status", but the
argument passed to the hook has been "queue". Some users may depend on
this; either this or the documentation should be corrected to match the
other.

Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/127
Co-authored-by: aabacchus <ben@bvnf.space>
Co-committed-by: aabacchus <ben@bvnf.space>
2024-01-12 17:39:05 +00:00
wael
b9a8f9fc28
kiss-repo(rev)depends: same utility to search in repositories instead 2023-12-23 19:04:48 +03:00
phoebos
7740c929a3
.woodpecker.yml: fix parse error 2023-08-12 12:30:33 +01:00
phoebos
9f88746487
.woodpecker.yml: add Codeberg CI 2023-08-04 13:30:56 +01:00
phoebos
584b905d17
kiss: pass _KISS_DATE when rerunning kiss as root
For context, see https://codeberg.org/kiss-community/kiss/issues/98
2023-07-16 14:27:58 +01:00
phoebos
37e6a59ed3
kiss: add preferred to usage 2023-05-17 00:06:34 +01:00
phoebos
a6bb1c5a26
kiss: preserve KISS_HOOK for as_user actions
Without KISS_HOOK exported to the privileged process, certain hooks
can't be run (pre- and post-install at least). run_hook_pkg works, but
not KISS_HOOK. Make sure it's preserved.
2023-05-16 23:40:25 +01:00
phoebos
1492cfa0a7
kiss: sort vars for as_user 2023-05-16 23:39:24 +01:00
phoebos
4e809ddf6b
kiss: remove pkg_find_version_split
should have been removed in b66a2c4.
2023-04-22 03:20:42 +01:00
phoebos
5e338034ec
kiss: fix _pkg_find for extra colons in KISS_PATH
Previously, having an extra colon in KISS_PATH causes / to be a
directory being searched in, so you could get things like

    $ KISS_PATH=: kiss s usr
    /usr

which is clearly incorrect.
2023-04-22 03:13:42 +01:00
phoebos
9e1394c897
kiss-maintainer: get git to format 2023-03-22 01:16:58 +00:00
phoebos
61b24f4d7b
kiss-maintainer: version is a path 2023-03-22 00:56:22 +00:00
phoebos
b66a2c4203 kiss: remove VERSION markers (#121)
https://codeberg.org/kiss-community/repo/issues/90
Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/121
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2023-03-02 09:45:21 +00:00
phoebos
4f739a6589 kiss: don't set DESTDIR in builds (#122)
https://codeberg.org/kiss-community/repo/issues/90
Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/122
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2023-03-02 09:45:09 +00:00
Vouivre
38b71d01b2 kiss-outdated: fdm name on repology (#120)
`fdm` on repology is now `fdm-email-fetcher`.

Co-authored-by: Cédric <cedric@vouivre.org>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/120
Co-authored-by: Vouivre <vouivre@noreply.codeberg.org>
Co-committed-by: Vouivre <vouivre@noreply.codeberg.org>
2023-03-01 09:00:44 +00:00
sewn
6a41ce4f7e kiss-outdated: use PWD when no args are given (#108)
Co-authored-by: wael <40663@proton.me>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/108
Reviewed-by: phoebos <phoebos@noreply.codeberg.org>
Co-authored-by: sewn <sewn@disroot.org>
Co-committed-by: sewn <sewn@disroot.org>
2023-01-20 07:52:57 +00:00
illiliti
b04a707130 kiss: improve compression (#110)
move compression to its own function
use threads for (de)compression where possible
drop some useless flags

Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/110
Reviewed-by: phoebos <phoebos@noreply.codeberg.org>
Co-authored-by: illiliti <illiliti@protonmail.com>
Co-committed-by: illiliti <illiliti@protonmail.com>
2023-01-20 07:51:54 +00:00
sdsddsd1
ed4b6b7534 contrib: kiss-outdated: fix python-* remotes (#115)
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/115
Co-authored-by: sdsddsd1 <sdsddsd1@noreply.codeberg.org>
Co-committed-by: sdsddsd1 <sdsddsd1@noreply.codeberg.org>
2023-01-03 13:07:56 +00:00
sdsddsd1
cbbfd857f0 contrib: kiss-outdated: gtk+3 fix remote name (#114)
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/114
Co-authored-by: sdsddsd1 <sdsddsd1@noreply.codeberg.org>
Co-committed-by: sdsddsd1 <sdsddsd1@noreply.codeberg.org>
2022-12-28 10:00:23 +00:00
phoebos
d240830906 kiss: fix dd for some implementations (#109)
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-11-22 04:12:26 +00:00
phoebos
65b5140de5 kiss: correct use of $@ if KISS_GET=aria2c (#107)
d47508c0 shifted some args down without updating the use of $2 and $3
later on.

Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/107
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-11-01 10:12:52 +01:00
git-bruh
b71f27c891
kiss: 5.6.4 2022-11-01 14:10:12 +05:30
phoebos
fabe05b37d kiss: remove partial downloads if interrupted (#100)
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-11-01 03:57:23 +01:00
Pratham
8caca48504 kiss: bail out if package removal would break alternatives (#89) (#92)
Co-authored-by: git-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/92
2022-10-30 08:51:12 +01:00
illiliti
3309146e61 kiss: use dd for prompt (#106)
use dd for prompt since it will always exit upon receiving SIGINT
signal, unlike the read builtin, which, as permitted by POSIX, can
ignore this signal.

Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/106
Co-authored-by: illiliti <illiliti@protonmail.com>
Co-committed-by: illiliti <illiliti@protonmail.com>
2022-10-29 09:03:06 +02:00
phoebos
a27fcec564 kiss: use Ctrl+D to abort prompt (#105)
EOF is defined by POSIX to cause read to return an error, and works with
every shell while SIGINT (Ctrl+C) does not (eg. with yash).

Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/105
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-10-27 09:01:59 +02:00
Pratham
8a1a88e0d3 kiss: fixup etcsums, closes #94 (#97)
```
λ rm -rf /tmp/root
λ KISS_FORCE=1 kiss i iproute2
-> iproute2 Checking for package conflicts
-> iproute2 Installing package (iproute2@5.19.0-1.tar.gz)
-> iproute2 Installed successfully
λ kiss r iproute2
-> iproute2 Checking if package removable
-> iproute2 Removing package
Skipping /etc/iproute2/rt_tables (modified)
Skipping /etc/iproute2/rt_scopes (modified)
Skipping /etc/iproute2/rt_realms (modified)
Skipping /etc/iproute2/rt_protos (modified)
Skipping /etc/iproute2/nl_protos (modified)
Skipping /etc/iproute2/group (modified)
Skipping /etc/iproute2/ematch_map (modified)
Skipping /etc/iproute2/bpf_pinning (modified)
-> iproute2 Removed successfully
λ
λ rm -rf /tmp/root
λ KISS_FORCE=1 $PWD/kiss i iproute2
-> iproute2 Checking for package conflicts
-> iproute2 Installing package (iproute2@5.19.0-1.tar.gz)
-> iproute2 Installed successfully
λ $PWD/kiss r iproute2
-> iproute2 Checking if package removable
-> iproute2 Removing package
-> iproute2 Removed successfully
```

Co-authored-by: git-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/97
2022-10-26 09:19:25 +02:00
phoebos
58475f7f29 kiss-outdated: fix repo name for cleaner cache (#101)
If you run `kiss outdated .`, everything works but the cached SVGs are
all dumped into ~/.cache/kiss/repology/ rather than
~/.cache/kiss/repology/repo/. Fix this by getting the repo name from PWD.

Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/101
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-10-21 09:50:35 +02:00
Pratham
74f78a8529 kiss: fix quadratic behaviour (#91)
Not really necessary considering it occurs only when files are actually invalid

Example with manually broken linux package:

```
λ time ./kiss i linux > /dev/null
-> linux Checking if manifest valid
ERROR linux manifest contains 16997 non-existent files
Command exited with non-zero status 1
real	0m 0.57s
user	0m 0.15s
sys	0m 0.42s
```

```
λ time kiss i linux > /dev/null
-> linux Checking if manifest valid
ERROR linux manifest contains 16997 non-existent files
Command exited with non-zero status 1
real	1m 10.04s
user	1m 7.94s
sys	0m 2.08s
```

Co-authored-by: git-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/91
2022-10-21 09:47:38 +02:00
phoebos
9c72484a62 kiss: add back repo update message support (#99)
A file called "MOTD" in each repo in KISS_PATH will be printed during `kiss u`.
As discussed in kiss-community/community#1295.

Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/99
2022-10-18 16:30:26 +02:00
git-bruh
b748b87148
Revert "kiss: bail out if package removal would break alternatives (#89)"
This reverts commit 2f4fc41582.
2022-10-07 21:02:03 +05:30
Pratham
2f4fc41582 kiss: bail out if package removal would break alternatives (#89)
Co-authored-by: git-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/89
2022-10-07 17:13:02 +02:00
Pratham
cb9fe25776 kiss-owns: fix usage with KISS_ROOT (#86)
Co-authored-by: git-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/86
2022-10-07 17:12:14 +02:00
Pratham
e9c72295d6 kiss: use chroot in run_hook_pkg (#83) 2022-10-05 21:36:42 +02:00
Pratham
2b84ea4563 Merge pull request 'kiss: return to original dir before rerunning' (#84) from phoebos/kiss:dir into master
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/84
2022-10-04 14:56:41 +02:00
phoebos
967f62b3be
kiss: return to original dir before rerunning
This ensures that kiss is found if $0 is a relative path.
2022-10-04 13:46:16 +01:00
phoebos
7de9d70fe4 kiss: preserve sticky bit in file_rwx (#80)
Co-authored-by: aabacchus <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/80
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-10-03 13:47:38 +02:00
git-bruh
f50ea0caa5
kiss: 5.6.3 2022-09-29 14:36:39 +05:30
ioraff
51768ad4c3 kiss: switch to blake3 checksums (#72)
As discussed in kiss-community/repo#100 and #39, we seem to be in favor of switching to blake3.

The following changes are made:
- All newly generated checksums are blake3
- The user is prompted to generate blake3 checksums if sha256 sums are present (maybe this should be automatic)
- For installed packages, we can fall back to sha256 to check etcsums

This includes a name change of the `checksums` and `etcsums` files -- I'm not sure of any better way to detect whether sha256 sums are in use, as blake3 sums are the same length.

Feedback is appreciated

Co-authored-by: Owen Rafferty <owen@owenrafferty.com>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/72
2022-09-28 19:15:17 +02:00
phoebos
d31dcf585e kiss: make KISS_FORCE bypass build dependency checks (#60)
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
2022-09-28 09:40:11 +02:00
ehawkvu
5f9c2c70fa
kiss: make help output more accurate (#78) 2022-09-24 23:09:35 +05:30
ehawkvu
74313a873c
kiss: don't run pkg_upgrade when using pkg_update (#65)
You are now required to run 'kiss U' if you want to update your
packages, since now all 'kiss u' does is sync the repositories in
your KISS_PATH.
2022-09-24 00:26:20 +05:30
aabacchus
b815b07b7a
kiss-maintainer: quote for shellcheck (#76) 2022-09-24 00:25:50 +05:30
aabacchus
154dada0df
kiss: fix shellcheck (#77) 2022-09-24 00:25:37 +05:30
git-bruh
875a574eb7
contrib/kiss-outdated: fix ctags 2022-09-21 17:37:41 +05:30
git-bruh
909ef5ac74
5.6.2 2022-09-17 22:28:57 +05:30