[PEAR-BUG] Req #18122 [Opn->Csd]: Missing command-line option in Pyrus to disable package signing

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18122&edit=1

 ID:               18122
 Updated by:       [email protected]
 Reported By:      clicky at erebot dot net
 Summary:          Missing command-line option in Pyrus to disable
                    package signing
-Status:           Open
+Status:           Closed
 Type:             Feature/Change Request
 Package:          PEAR
 Operating System: Ubuntu 10.04
 Package Version:  SVN
 PHP Version:      5.3.3
-Assigned To:      
+Assigned To:      mfonda
 Roadmap Versions: 
 New Comment:

-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: mfonda



Previous Comments:
------------------------------------------------------------------------

[2011-06-24 18:46:37] mfonda

This bug has been migrated to the new Pyrus bug tracker on github: see 
https://github.com/pear2/PEAR2_Pyrus/issues/38

------------------------------------------------------------------------

[2010-12-18 18:49:58] looksup

Description:
------------
I configured my Pyrus installation so that it will use a certificate to
sign packages I produce.
The problem is, I also have a buildbot using the same user account which
tries to build nightly snapshots of my code as unsigned packages.
Whenever the slave starts the packaging process, Pyrus prompts it to
choose whether the package should be signed or not. Since the slave has
no way to answer that prompt, it just sits there, until the timeout for
the task is reached, at which point pyrus gets killed.

I know a simple workaround would be to use different user accounts with
different Pyrus installations (configurations), but I think it would be
valuable to have a command-line option to accept/refuse package
signing.

I suggest adding a command-line option (--sign) so that external scripts
(buildbot, cron task, etc.) can be used to create packages without being
stuck at the signature prompt.
IMHO, it should support the following values:
"on" / "yes" : force signing, exit with an exception if no valid
certificate was found
"off" / "no" : disable signing entirely
"ask" (default value) : prompt whether signing should be enable or not
(this is the current behaviour)

Test script:
---------------
$ pyrus.phar package --sign=off --phar --tgz

Expected result:
----------------
Pyrus should build the phar & tgz archives without prompting the user
whether a certificate should be used or not to sign the package.

Actual result:
--------------
Pyrus asks me whether I want a signature to be added or not:

Sign package?
Please choose:
  yes
  no
[yes] :

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18122&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.