Commit Graph

1995 Commits

Author SHA1 Message Date
git-bruh
2afac4e981 Fix #64, closes #67
Co-authored-by: illiliti <illiliti@protonmail.com>
2022-09-03 00:24:38 +05:30
Owen Rafferty
2e7e04a537
Merge pull request #61 from qi777xj/master
Make aria2 use the absolute path
2022-08-11 14:14:03 -05:00
aabacchus
96bb00372c
kiss: fix pkg_update for extra colons in KISS_PATH (#59)
If KISS_PATH=:: or even KISS_PATH=:/repo1:/repo2, the `IFS=:; set -- $KISS_PATH`
trick leaves some of $@ as empty strings. These cause git to print errors.
Instead, skip empty arguments.

Demonstration of bug:

    $ cd
    $ KISS_PATH=::: kiss u 2>&1 | sed '/Checking/q'
    -> Updating repositories
    fatal: not a git repository (or any of the parent directories): .git
    fatal: not a git repository (or any of the parent directories): .git
    fatal: not a git repository (or any of the parent directories): .git
    -> Checking for new package versions

The git commands producing the errors are:
    git -C "" rev-parse 'HEAD@{upstream}'
and when the argument to -C is empty, the current working directory is
unchanged. Therefore, if PWD happens to be inside a git tree, this
command could have unexpected effects: currently, if KISS_PATH contains
(an) extra colon(s), and PWD is in a git repo with an upstream, the repo
is updated irrespective of whether it is in KISS_PATH or a package repo.
This behaviour is also fixed by this commit.
2022-08-11 00:26:54 +05:30
jellybean
d47508c04d
Make aria2 use the absolute path 2022-08-08 05:42:23 +00:00
Owen Rafferty
6887884127 don't error out silently on git rev-parse 2022-08-05 21:24:43 +05:30
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
illiliti
363fcaf71c kiss: copy symlinks as is
If source contains dangling symlink, attempt to dereference it
would result into error.
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
990eba374e
Merge pull request #290 from jgarte/jgarte-patch-1
typo fix
2021-12-13 07:03:16 +02:00
jgart
8e304105b7
typo fix 2021-12-12 23:58:35 -05:00
Dylan Araps
54a8fab2f2
kiss-outdated: libseat -> seatd 2021-11-07 16:33:27 +02:00
Dylan Araps
ff86512d3a
kiss: nit 2021-11-05 07:49:36 +02:00
Dylan Araps
d21b33742d
kiss: nit 2021-11-05 07:48:18 +02:00
Dylan Araps
70bd51f46b Merge branch 'master' of github.com:kisslinux/kiss 2021-11-04 07:42:40 +02:00
Dylan Araps
9f31e3db97
kiss-chroot: Minor changes. Closes #286 2021-11-04 07:42:09 +02:00
dylan
69b8c9ac1e
Merge pull request #288 from TAAPArthur/portable_xz
Removed non-portable xz options
2021-10-23 12:45:35 +03:00
Arthur Williams
11e28a4c9b Removed non-portable xz options
Remove the "-T0" from the invocations of xz
2021-10-23 03:53:59 -05:00
Dylan Araps
1c743cea46 Merge branch 'master' of github.com:kisslinux/kiss 2021-10-22 08:24:28 +03:00
Dylan Araps
0fd043a4c1
kiss: Fix tar issue with top-level files. Closes #285 2021-10-22 08:23:02 +03:00
dylan
898fa5ac3a
Merge pull request #284 from ehawkvu/kiss-outdated-nit
kiss-outdated: nit
2021-10-22 08:15:30 +03:00
Ethan
c3e9bf86b4 kiss-outdated: nit 2021-10-21 23:52:34 -05:00
Dylan Araps
228075aab1
kiss: Fix signal handling and implement SIGINT and SIGEXIT hooks.
Ctrl+C is now correctly blocked during installation and removal
and ordering of pkg_clean is maintained.

Two new hooks have been added, SIGINT and SIGEXIT. These run in
the corresponding signal handlers.

Fixes #280
2021-10-06 09:10:56 +03:00
Dylan Araps
764acdcde7
kiss: Fix #279 2021-10-05 07:37:01 +03:00
Dylan Araps
7cb70f67ec
kiss-revdepends: Fix non-posix grep usage 2021-10-05 06:17:38 +03:00
Dylan Araps
e58c74eb1f
kiss: fix conflicts bug. See #278 2021-10-04 08:56:28 +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
eed63b0d81
kiss: don't pull if no remote. Closes #269 2021-09-11 10:02:53 +03:00
Dylan Araps
12646e4009
kiss: export RUSTFLAGS and GOFLAGS in builds. Closes #271 2021-09-11 09:47:39 +03:00
Dylan Araps
a4f7765f94
kiss: Shallow clone git sources where possible. Also avoid pulling down tags. See #270 2021-09-10 17:07:54 +03:00
Dylan Araps
60c32c5fa2
kiss: checkout output of git remote. See #269 2021-09-07 16:58:59 +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
cade52d1cc
misc: fix comment 2021-09-03 20:06:54 +03:00
Dylan Araps
9ab1f9f5e0
misc: fix comment 2021-09-03 07:32:22 +03:00
Dylan Araps
252df82806
kiss: make KISS_PROMPT=0 skip install entirely.
Less intrusive fix for #265
2021-08-31 17:47:41 +03:00
Dylan Araps
d58eb983bf
kiss: add KISS_BUILD_INSTALL
This option defaults to '1' and controls the installation prompt
at the end of the build process. Setting this to '0' will disable
the installation of packages post-build.

Closes #265
2021-08-31 17:19:54 +03:00
Dylan Araps
7a53298241
pkg_verify: simplify 2021-08-30 17:51:54 +03:00
Dylan Araps
98097feec5
misc: nit 2021-08-30 17:20:38 +03:00
Dylan Araps
02cec7a879
5.5.28 2021-08-30 17:08:57 +03:00
Dylan Araps
6a00546b3b
kiss: simplify pkg_source_git 2021-08-28 15:48:59 +03:00
Dylan Araps
993bea5ba0
kiss-help: Expand to displaying README files within repositories 2021-08-27 07:21:42 +03:00
Dylan Araps
6eb382f400
kiss: remove docs 2021-08-26 20:01:08 +03:00
dylan
88b5989da4
Merge pull request #261 from kisslinux/git_cache
kiss: git caching
2021-08-26 13:50:09 +03:00
Dylan Araps
ea9d8e7ad5
kiss: fix bug with mkcd 2021-08-25 19:20:28 +03:00
Dylan Araps
4de7a6ffb4
kiss: fix git 2021-08-25 19:16:07 +03:00
Dylan Araps
29c57a0115
kiss: unify pkg_source_ 2021-08-25 19:02:25 +03:00
Dylan Araps
47a4b2b769
kiss: add comment 2021-08-25 17:09:37 +03:00