You are not logged in.

#1 2014-03-27 23:03:44

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Problem with gpg agent/repo-add script

Hello,

I have a problem with gpg agent and the repo-add command.

In brief description, I have a servicemenu, which has repo-add/remove commands.

Everything is fine, if I direct the generated command to konsole in kde, including signing the repo db.

I would like to do the trick without running the command in konsole.
Normal repo-add/remove works just fine, wiith eg a progressbar.

But signing fails to open pinentry, where as it works in konsole.

The debug says, create_signature in repo-add script returns 2, which it shouldn't.

+ printf '==> Signiere Datenbank...\n'
+ local SIGNWITHKEY=
+ [[ -n '' ]]
+ gpg --detach-sign --use-agent $HOME/projects/pkg/test/.tmp.test.db.tar.xz
+ ret=2
+ ((  ! ret  ))
++ gettext 'Failed to sign package database.'
Misuse of shell builtins (according to Bash documentation)

Missing keyword or command, or permission problem 

http://www.tldp.org/LDP/abs/html/exitcodes.html

Can somebody please explain what is going on there? Where is that little difference, which makes it work in konsole, but fails without?


A more detailed description to my little bash learning playground is here:
https://bbs.archlinux.org/viewtopic.php?id=174026

Last edited by artoo (2014-03-27 23:07:18)

Offline

Board footer

Powered by FluxBB