Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpan install exit status #32

Open
melezhik opened this issue Jun 1, 2012 · 6 comments
Open

cpan install exit status #32

melezhik opened this issue Jun 1, 2012 · 6 comments

Comments

@melezhik
Copy link

melezhik commented Jun 1, 2012

It'd be great if cpan install fails it return exit status <> 0. In automated deploy via chef-client this feature is vital.

@briandfoy
Copy link
Contributor

It doesn't already do this? What version are you using? Are you using the script or something else?

@melezhik
Copy link
Author

This is detailed information:

melezhik@melezhik-PC:~/$ cpan 
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> m CPAN
Reading '/home/melezhik/.cpan/Metadata'
  Database was generated on Fri, 19 Apr 2013 00:41:02 GMT
Module id = CPAN
    DESCRIPTION  Perl Archive browse and download
    CPAN_USERID  ANDK (Andreas J. Koenig <andreas.koenig.7os6vvqr@franz.ak.mind.de>)
    CPAN_VERSION 2.00
    CPAN_FILE    A/AN/ANDK/CPAN-2.00.tar.gz
    UPLOAD_DATE  2013-04-12
    DSLIP_STATUS RdpO? (released,developer,perl,object-oriented,)
    MANPAGE      CPAN - query, download and build perl modules from CPAN sites
    INST_FILE    /tmp/lib/perl5/CPAN.pm
    INST_VERSION 2.00


cpan[2]> exit
Terminal does not support GetHistory.
Lockfile removed.
melezhik@melezhik-PC:~/$ cpan Foo::Unknown
Reading '/home/melezhik/.cpan/Metadata'
  Database was generated on Fri, 19 Apr 2013 00:41:02 GMT
Warning: Cannot install Foo::Unknown, don't know what it is.
Try the command

    i /Foo::Unknown/

to find objects with matching identifiers.
melezhik@melezhik-PC:~/$ echo $?
0

@briandfoy
Copy link
Contributor

Thanks for that. I thought I had made that work, but I had merely defined
the constants for it. I just uploaded App::Cpan 1.61_03 which I think does
the trick. It will return non zero for any failure, even if other modules
in that run installed just fine.

@briandfoy
Copy link
Contributor

We can close this issue.

@melezhik
Copy link
Author

Thanks Brian!

понедельник, 16 марта 2015 г. пользователь brian d foy написал:

We can close this issue.


Reply to this email directly or view it on GitHub
#32 (comment).

Отправлено с мобильного устройства

@briandfoy
Copy link
Contributor

This issue has been resolved but I don't have the access to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants