Package Details: plasma-desktop-git 6.0.80_r11524.gf3a8cd50e-1

Git Clone URL: https://aur.archlinux.org/plasma-desktop-git.git (read-only, click to copy)
Package Base: plasma-desktop-git
Description: KDE Plasma Desktop
Upstream URL: https://kde.org/plasma-desktop/
Licenses: LGPL-2.0-or-later
Groups: plasma-git
Conflicts: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Provides: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Replaces: knetattach-git, user-manager-git
Submitter: arojas
Maintainer: IslandC0der (chaotic-aur)
Last Packager: IslandC0der
Votes: 9
Popularity: 0.000001
First Submitted: 2014-03-31 06:31 (UTC)
Last Updated: 2024-03-02 13:37 (UTC)

Required by (46)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 12 Next › Last »

IslandC0der commented on 2021-09-01 01:57 (UTC)

Hmm that's actually expected, it should just save your authentication temporarily.

What happens if you run it twice? Does it still ask for the password the second time?

PS: sorry for the late reply!

Neko-san commented on 2021-08-23 04:42 (UTC)

@IslandC0der Nothing apparently?

Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
neko-san@ARCH ~/asp> bash
[neko-san@ARCH asp]$ sudo -v
[sudo] password for neko-san: 
[neko-san@ARCH asp]$ 

IslandC0der commented on 2021-08-22 14:12 (UTC)

Hmm, what happens if you just run sudo -v on a fresh terminal?

Neko-san commented on 2021-08-21 02:36 (UTC) (edited on 2021-08-21 17:34 (UTC) by Neko-san)

@IslandC0der Would here be right?

EDIT: I tried this and the prompt just got skipped :v

asp update

trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
  sudo -v
  sleep 295
done &

for dir in */; do (
  cd $dir
  git fetch

IslandC0der commented on 2021-08-20 15:26 (UTC) (edited on 2021-08-20 15:27 (UTC) by IslandC0der)

Good question! After a lot of messing around, I found this. So, just add this code to the start of your script:

trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
  sudo -v
  sleep 295
done &

and you'll only have to provide the password once at the start, and it will continuously loop sudo, preventing it from expiring.

Note: this will depend on your sudo timeout: the default is 5 minutes (hence sleeping for 295 seconds, for a 5 second buffer), but if you have something different, you will have to adjust it.

If you don't have a timeout, like me, simply having sudo -v at the beginning of the script would be enough.

Neko-san commented on 2021-08-19 04:12 (UTC)

@IslandC0der Seems to work, yeah One last thing: is there something I can do to make makepkg install these itself without authentication every single time it does so in the script?

Like, I get the reason why but it gets in the way of smooth operation in this circumstance :/

IslandC0der commented on 2021-08-19 01:52 (UTC) (edited on 2021-08-19 01:54 (UTC) by IslandC0der)

Yup, that should do the trick :D

Does it work?

Neko-san commented on 2021-08-19 01:10 (UTC)

@IslandC0der Like this?

      if [[ $? != 0 ]]; then
        ## Error-handling code goes here
        echo $dir >> ~/asp/errors.log
        notify-send "Makepkg failed to compile $dir" --app-name=aspUpdate.sh --icon=script-error --urgency=critical
      fi

IslandC0der commented on 2021-08-19 00:57 (UTC) (edited on 2021-08-19 00:58 (UTC) by IslandC0der)

Hmm that seems like something on your end, I've just tried and it downloaded fine :/

Anyways, it really depends on what you wanna do: you could for example change line 970 to something like makepkg -sfcCri --noconfirm || echo $dir >> ~/asp/errors.log, which would log the package name to a file if an error is encountered.

You can replace what's after || with whichever command you want to run if makepkg fails. If you want to run multiple commands, you can do:

if [[ $? != 0 ]]; then
  ## Error-handling code goes here
fi

right after makepkg, instead of ||.

Neko-san commented on 2021-08-19 00:17 (UTC) (edited on 2021-08-19 01:02 (UTC) by Neko-san)

@IslandC0der Oki

Oof, something went wrong with the source download part of makepkg :v (I also take it that error-handling would not be possible here?)

EDIT: Doing it again worked fine but this was strange; I imagine makepkg messing up, though, would mean that this process would have to be done again for any package :/

==> Making package: dolphin-emu 1:5.0.r14790.3cc274880f-1 (Wed 18 Aug 2021 06:51:51 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning dolphin-emu git repo...
Cloning into bare repository '/home/neko-san/asp/dolphin-emu/trunk/dolphin-emu'...
remote: Enumerating objects: 549044, done.
remote: Counting objects: 100% (7483/7483), done.
remote: Compressing objects: 100% (2764/2764), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection reset by peer, errno 104
error: 8174 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
==> ERROR: Failure while downloading dolphin-emu git repo
    Aborting...
neko-san@ARCH ~>