Commit Graph

1616 Commits

Author SHA1 Message Date
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 e9c72295d6 kiss: use chroot in run_hook_pkg (#83) 2022-10-05 21:36:42 +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 154dada0df
kiss: fix shellcheck (#77) 2022-09-24 00:25:37 +05:30
git-bruh 909ef5ac74
5.6.2 2022-09-17 22:28:57 +05:30
Wolf Gupta 15c89f6423
kiss: fix masking local source as remote, closes #70 (#73) 2022-09-17 22:24:47 +05:30
Wolf Gupta 36df1ae0e5
kiss: ignore libraries with RPATH in dependency detector (#69) 2022-09-16 13:17:47 +00:00
git-bruh 031179e1b1
kiss: 5.6.1 2022-09-03 14:11:48 +05:30
git-bruh fd3fe16812
ldd prefixes with a tab... 2022-09-03 14:03:43 +05:30
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
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
jgart 8e304105b7
typo fix 2021-12-12 23:58:35 -05: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
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 0fd043a4c1
kiss: Fix tar issue with top-level files. Closes #285 2021-10-22 08:23:02 +03: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 e58c74eb1f
kiss: fix conflicts bug. See #278 2021-10-04 08:56:28 +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 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 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
Dylan Araps e58a0f4f0b
kiss: don't clone git repositories for kiss c 2021-08-25 14:32:25 +03:00
Dylan Araps c84775c152
kiss: handle remote swaps 2021-08-25 14:29:39 +03:00
Dylan Araps 755838425f
kiss: git caching 2021-08-25 09:21:57 +03:00
Dylan Araps b14526b9bf
kiss: 5.5.27 2021-08-21 14:27:32 +03:00
Dylan Araps a0c25b2a89
kiss: dereference symlinks on source copy 2021-08-21 14:00:12 +03:00