/opt/ventoy/tool/{ventoy_lib.sh,VentoyWorker.sh}
these 2 scripts aren't posix complient. so please change #!/bin/sh
to #!/usr/bin/env bash
for those scripts.
Search Criteria
Package Details: ventoy-bin 1.0.99-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/ventoy-bin.git (read-only, click to copy) |
---|---|
Package Base: | ventoy-bin |
Description: | A new bootable USB solution |
Upstream URL: | http://www.ventoy.net |
Keywords: | boot image iso multiboot usb |
Licenses: | GPL-3.0-or-later |
Conflicts: | ventoy |
Provides: | ventoy |
Submitter: | DuckSoft |
Maintainer: | DuckSoft (KokaKiwi, yochananmarqos, Kr1ss) |
Last Packager: | yochananmarqos |
Votes: | 360 |
Popularity: | 8.17 |
First Submitted: | 2020-05-19 06:14 (UTC) |
Last Updated: | 2024-12-13 03:01 (UTC) |
Dependencies (7)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- dosfstools (dosfstools-gitAUR)
- util-linux (busybox-coreutilsAUR, util-linux-selinuxAUR, util-linux-aesAUR)
- xz (xz-gitAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR) (optional) – GTK3 GUI
- polkit (polkit-gitAUR, polkit-consolekitAUR) (optional) – run GUI from application menu
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR) (optional) – Qt5 GUI
Required by (0)
Sources (9)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 16 Next › Last »
Atif commented on 2021-09-14 16:45 (UTC)
aminvakil commented on 2021-09-14 14:12 (UTC)
Please fix "ventoy.desktop ... FAILED" checksum validation.
yochananmarqos commented on 2021-09-14 14:08 (UTC)
@TankMissile: Oops, fixed.
The binaries can't be symlinked due to the use of relative paths.
TankMissile commented on 2021-09-14 03:55 (UTC) (edited on 2021-09-14 03:56 (UTC) by TankMissile)
The .desktop file for the new linux GUI should not have Terminal=true. Also, instead of having scripts that point to the ventoy commands, why not symlink them instead?
Kr1ss commented on 2021-09-13 15:06 (UTC)
I tend to agree. Thanks !
yochananmarqos commented on 2021-09-13 15:05 (UTC)
@Kr1ss: I think printing the messages isn't necessary at all and makes the PKGBUILD messy. Just my 2 cents.
Kr1ss commented on 2021-09-01 16:51 (UTC)
Thank you @ron2138 !
The first idea I had earlier (to check if output goes to a tty or not), was a bit too quick. It wouldn't prevent colored lines in the log, because makepkg
redirects the data stream to the log file outside of the PKGBUILD's functions, and thus after that condition would be tested.
I figured it would make much more sense anyways, to let the user switch off color explicitely via the -m
/--nocolor
flag which you mentioned. The only (sensible) way to check if that flag is set or not, that I could come up with, is querying a variable that depends on it.
You're correct in that USE_COLOR
is a variable defined by makepkg
itself. That doesn't offend the recommendation in the packaging etiquette though, in my opinion, since it's not a subroutine.
As I understand that wiki clause, internal makepkg
functions should not be used because the build script could break when those functions are changed at some point. This is not the case when a variable is queried though. Building would still work after a change.
In case that I'm getting something completely wrong please let me know. Also @yochananmarqos and/or @DuckSoft, do you have any strong opinions about this ? Would it make more sense to just remove the color codes ?
ron2138 commented on 2021-08-31 21:08 (UTC) (edited on 2021-09-01 12:19 (UTC) by ron2138)
Replying @Kr1ss's comment at 2021-08-31 20:31:
Under a quick test, it solves my issue.
Does $USE_COLOR
an internal variable of makepkg
? If yes, doesn't https://wiki.archlinux.org/title/Arch_package_guidelines#Package_etiquette apply to it too? See comment at 2021-08-28 20:18. For the reference, Kr1ss suggests
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,10 @@ sha256sums=('81ae02a06b132b5965dd09c9b64e000a6dafa1d57e03d8564feefda14ef1ee02'
'00dec31721a052d5e6c928e3b38b870959bdb42188f34717898d99c0cef950df'
'1555f65997e6d92ca29a774b45052e97a3358430fa5869f521a4fe7818427a1f')
-_msg2() { printf "\e[1;34m ->\e[0;1m %s\e[0m\n" "$1"; }
+_msg2() {
+ if [ "$USE_COLOR" = n ]; then printf " -> %s\n" "$1"
+ else printf "\e[1;34m ->\e[0;1m %s\e[0m\n" "$1"; fi
+}
prepare() {
_msg2 "Decompress tools..."
Kr1ss commented on 2021-08-31 20:31 (UTC)
Oh, the latest pkgrel
update (to 1.0.51-2
) should actually have solved your issue @ron2138. Hasn't it ?
ron2138 commented on 2021-08-31 20:27 (UTC) (edited on 2021-09-01 02:17 (UTC) by ron2138)
Replying @Kr1ss's comment at 2021-08-30 16:15
Do you mean
diff --git a/PKGBUILD b/PKGBUILD
index c802de3..dec468a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,10 @@ sha256sums=('81ae02a06b132b5965dd09c9b64e000a6dafa1d57e03d8564feefda14ef1ee02'
'00dec31721a052d5e6c928e3b38b870959bdb42188f34717898d99c0cef950df'
'1555f65997e6d92ca29a774b45052e97a3358430fa5869f521a4fe7818427a1f')
-_msg2() { printf "\e[1;34m ->\e[0;1m %s\e[0m\n" "$1"; }
+_msg2() { if tty --silent; then
+ printf "\e[1;34m ->\e[0;1m %s\e[0m\n" "$1"
+ else
+ printf " -> %s\n" "$1"
+ fi
+}
prepare() {
_msg2 "Decompress tools..."
?
Not tested.
Pinned Comments