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

150 Commits

Author SHA1 Message Date
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
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
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
aabacchus
b815b07b7a
kiss-maintainer: quote for shellcheck (#76) 2022-09-24 00:25:50 +05:30
git-bruh
875a574eb7
contrib/kiss-outdated: fix ctags 2022-09-21 17:37:41 +05:30
Wolf Gupta
af2335c55e
kiss-outdated: updates (#68)
* kiss-outdated: log if no remote version is found

* kiss-outdated: update package names
2022-09-09 11:36:37 +00:00
aabacchus
c6c851b645 kiss-chroot: fix trap
If the chroot is exited with nonzero status, kiss-chroot runs `die
chroot failed`. Then, die runs `exit 1` which causes the trap to
execute. However, in this scope, "$@" is "chroot failed", so the trap
evaluates $1 to be "chroot" rather than the mountpoint given to the
kiss-chroot script. Then, the trap tries to unmount "chroot/dev" etc
rather than the true mountpoint.

This patch uses double quotes rather than single when setting the trap,
so that $1 is expanded then and the mountpoint is stored for when the
trap is called.
2022-08-05 21:24:43 +05:30
aabacchus
800d3ac854 kiss-maintainer: fix CRUX-style usage
Commit d94c811 changed `sort -u` to `uniq -u`; these are not equivalent.
`uniq -u` suppresses all duplicate lines, but `sort -u` removes all but
one. In the case of there being no command-line args, PWD is taken as
the package, and if that package is in a repo already in KISS_PATH, the
repo will be in KISS_PATH twice. This will cause the `kiss search`
command to give two entries for PWD, and `uniq -u` removes both.
Revert to `sort -u` to keep one of those entries.

If the package in PWD is not installed, there will be not entries left;
if it is installed, kiss-maintainer will try to get the history from
/var/db/kiss/installed/pkg, which is not a git repo.

Example of the incorrect behaviour:
    KISS_PATH=/home/me/repo/core
    PWD=/home/me/repo/core/musl
    $ sh -x /usr/bin/kiss-maintainer
    + '['  ]
    + export 'KISS_PATH=/home/me/repo/core::/home/me/repo/core'
    + set -- musl
    + kiss search musl
    + uniq -u
    + read -r repo
    + read -r repo
    + cd /var/db/kiss/installed/musl
    + git log -1 version
    + m=
    + :
    + m=
    + m=
    + '['  ]
    + continue
    + read -r repo

    (no output)
2022-08-05 21:24:43 +05:30
aabacchus
a973491b0e kiss-size: fix for packages containing files with quotes in filenames
if a package contains a file with a quote in it's name, xargs complains
about an unmatched quote and fails, and the pipeline is aborted.
this patch escapes all non-alphanumeric characters so that xargs can
handle such filenames.
2022-08-05 21:24:42 +05:30
Dylan Araps
54a8fab2f2
kiss-outdated: libseat -> seatd 2021-11-07 16:33:27 +02:00
Dylan Araps
9f31e3db97
kiss-chroot: Minor changes. Closes #286 2021-11-04 07:42:09 +02:00
Ethan
c3e9bf86b4 kiss-outdated: nit 2021-10-21 23:52:34 -05:00
Dylan Araps
7cb70f67ec
kiss-revdepends: Fix non-posix grep usage 2021-10-05 06:17:38 +03:00
Dylan Araps
ef8ef9986b
kiss-revdepends: Fix matching. Closes #277 2021-10-04 06:33:11 +03:00
Dylan Araps
993f4ee9b1
kiss-orphans: Performance improvements.
Closes #275
2021-09-26 15:00:38 +03:00
Dylan Araps
fd8cfe1c69
kiss-outdated: minor fixes 2021-09-06 12:39:07 +03:00
Dylan Araps
5d55bef961
kiss-outdated: remove pipe 2021-09-06 12:25:09 +03:00
Dylan Araps
2d084c5e27
kiss-outdated: parallel. closes #268 2021-09-06 12:10:15 +03:00
Dylan Araps
993bea5ba0
kiss-help: Expand to displaying README files within repositories 2021-08-27 07:21:42 +03:00
Dylan Araps
fc99f6c44f
contrib: drop repo-orphans
Use 'kiss U' or 'kiss upgrade' instead.
2021-08-08 15:40:08 +03:00
Ethan
b11cd58936 kiss-size: fix bug when kiss-size runs on big packages
Previously, if kiss-size was ran on a package that owns a lot of
files, kiss-size would error out. This is because du wasn't
able to handle the number of files provided to it.

This patch solves this issue, by avoiding the generation of the 'files'
variable, and instead piping directly into xargs which then feeds the
files to du.

For an example package that breaks with the previous implementation,
see https://github.com/ehawkvu/kiss-tex/tree/master/texlive/texlive-fontsextra
which installs around 94,000 files.
2021-08-04 00:25:06 -05:00
Dylan Araps
66958b3232
kiss-export: Remove utility
This utility must be rewritten (with added complexity). There is
no portable way to tell tar to add a directory but not include its
contents (unless it is empty).

The simple approach of giving tar the package's manifest is not
workable without omitting directories. This causes issues when
installing an exported tarball and target directories do not exist.

The most obvious solution is to copy all of the package's files
to a temporary directory and then pass that to tar. This would
work fine but slow the process down substantially.

Another solution will be sought and if not possible the above will
be implemented instead.

Closes #254
2021-08-02 17:29:08 +03:00
Dylan Araps
5f82eb3ca0
kiss-chroot: set LOGNAME 2021-07-19 19:50:25 +03:00
Dylan Araps
08631865e9
docs: initial rewrite 2021-07-19 14:04:01 +03:00
Dylan Araps
213654e58c
kiss-outdated: libelf -> elfutils 2021-07-19 12:49:31 +03:00
Dylan Araps
caef8d6581
kiss-outdated: we are upstream 2021-07-19 12:45:52 +03:00
Dylan Araps
8574d3ed4a
misc: fix linter 2021-07-18 21:52:02 +03:00
Dylan Araps
905256b2b5
kiss-outdated: nit 2021-07-18 08:38:58 +03:00
Dylan Araps
7b996b9c06
kiss-outdated: check multiple repositories in one call 2021-07-18 08:37:01 +03:00
Dylan Araps
6ef8b385fe
kiss: remove kiss-hooks 2021-07-14 19:38:11 +03:00
Dylan Araps
276ea50b77
kiss-hooks: show package name 2021-07-14 19:09:20 +03:00
Dylan Araps
06ace10d8a
contrib: added kiss-hooks to list system-wide hooks.
See #229
2021-07-14 18:58:44 +03:00
Dylan Araps
dc776868d2
contrib: remove kiss-reset
This is best handled manually.
2021-07-14 08:13:27 +03:00
Dylan Araps
633d80067f
kiss-reset: keep baseinit and openssl. Closes #230 2021-07-14 07:03:28 +03:00
Dylan Araps
51e71f970a
kiss-chroot: default to -O2 2021-07-12 11:16:33 +03:00
Dylan Araps
11813f3a10
kiss-help: improvements 2021-07-10 16:33:32 +03:00
Dylan Araps
8a00327cb6
kiss-size: prepend KISS_ROOT 2021-07-04 13:52:35 +03:00
Dylan Araps
127cf15c12
kiss-outdated: fix gtk+3 2021-07-03 15:57:09 +00:00
Dylan Araps
15e7621d9f
kiss-chroot: improvements
- now displays exact commands which are executed on enter/leave.
- cleaned up code.
2021-07-03 14:13:07 +00:00
Dylan Araps
b6c5a245bd
kiss-outdated: improvements 2021-07-03 11:26:44 +00:00
Dylan Araps
2e455e96ab
kiss-outdated: Fix clang 2021-07-01 13:00:35 +00:00
Dylan Araps
e9a2e3472b kiss-chroot: Mount /dev/shm, /dev/pts, /tmp and /run 2021-06-30 09:01:52 +00:00
Dylan Araps
4de133f546 kiss-owns: Fix #209 2021-06-28 07:14:57 +00:00
Dylan Araps
f7957e12f7
fix shellcheck 2020-11-25 09:02:32 +02:00
Dylan Araps
1ea02cc354
kiss-repo-orphans: call kiss once 2020-11-19 14:37:29 +02:00
Dylan Araps
98b3f4ab6a
kiss: new utility kiss-repo-orphans
Lists all packages which do not belong to any repository in KISS_PATH.
2020-11-19 14:01:16 +02:00
Dylan Araps
367923b378
kiss-preferred: fixes 2020-11-19 11:48:33 +02:00
dylan
7fdf69dfc2
Merge pull request #199 from TAAPArthur/master
kiss-preferred: new utility to list all current conflicts resolutions.
2020-11-19 11:41:29 +02:00