1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-13 18:25:17 -07:00
Go to file
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
.github github: issue template 2021-07-24 23:28:52 +03:00
contrib kiss-chroot: fix trap 2022-08-05 21:24:43 +05:30
kiss kiss: fix pkg_update for extra colons in KISS_PATH (#59) 2022-08-11 00:26:54 +05:30
LICENSE docs: update 2021-07-02 14:43:29 +00:00
README meta: new domain 2021-07-23 00:34:24 +03:00

|/
|\ISS LINUX                                                https://kisslinux.org
________________________________________________________________________________


Package Manager
________________________________________________________________________________

KISS' tiny package manager.

Documentation:

- https://kisslinux.org/package-manager
- https://kisslinux.org/package-system