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

Non Zero exit codes #2

Closed
s0undt3ch opened this issue Jun 16, 2013 · 6 comments
Closed

Non Zero exit codes #2

s0undt3ch opened this issue Jun 16, 2013 · 6 comments
Assignees

Comments

@s0undt3ch
Copy link

If an operation does not complete as it should, please don't return a 0 exit code.

[root@c5d1f54b-ed4e-4710-99a4-e4ee6d109b88 ~]# pkgin -v
pkgin 0.6.0 for SunOS-5.11 i386 (using SQLite 3.7.7.1)
[root@c5d1f54b-ed4e-4710-99a4-e4ee6d109b88 ~]# pkgin -y in gcc-compiler
gcc-compiler is not available on the repository
calculating dependencies... done.
nothing to do.
[root@c5d1f54b-ed4e-4710-99a4-e4ee6d109b88 ~]# echo $?
0
[root@c5d1f54b-ed4e-4710-99a4-e4ee6d109b88 ~]# 

It's arguable if it should return 1, or any other chosen exit code since the issue was a package not found.

If this is properly handled in > 0.6 please forgive me

@iMilnb
Copy link
Contributor

iMilnb commented Jun 16, 2013

Yes, that's something I fixed in the newly-released 0.6.4, binaries will be available along with pkgsrc 2013Q2

@ghost ghost assigned iMilnb Jun 16, 2013
@s0undt3ch
Copy link
Author

Bummer! Should have kept quiet 😄

@s0undt3ch
Copy link
Author

Thanks!

@iMilnb
Copy link
Contributor

iMilnb commented Jun 16, 2013

No problem at all, actually you couldn't have known this was fixed until today :)

@rdeaton
Copy link

rdeaton commented Jul 31, 2013

I'm seeing an issue in 0.6.4 which I've since downgraded because of where in some cases (in particular, on installing apache 2.4.4 from 2013Q2) pkgin has a return code of 1 despite success. I've not yet had a chance to dig into the internals, but I thought maybe knowing it might be an issue may give you a hint as to where to look.

I'll try to grab you some logs in the next couple days.

@iMilnb
Copy link
Contributor

iMilnb commented Aug 3, 2013

Yes please, if you could provide me the scenario that would help a lot. Thanks!

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

3 participants