Michael Klier wrote:
Jason Chu wrote:
Alrighty, mostly a couple questions:
Would it be an idea to build as the original users who ran srcpac? I
guess if you use sudo, that won't quite work... you'd need something
pointing back to that user...
I don't know if that's possible, because you don't know whether srcpac was
invoked as root or via sudo. However, maybe a new separate user isn't needed and
we could just (ab)use nobody for the makepkg calls.
You could test for SUDO_USER environment variable. If it doesn't exists
then it was not called through sudo and USER would give you the real user.
Armando