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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages show as installed when they are not #666

Closed
Spuds opened this issue Jul 13, 2013 · 4 comments
Closed

Packages show as installed when they are not #666

Spuds opened this issue Jul 13, 2013 · 4 comments

Comments

@Spuds
Copy link
Contributor

Spuds commented Jul 13, 2013

I don't want to wrap my head around this one ATM so I hope whoever did the refactor can recall a couple of things 馃槂

The basic issue is that the function isPackageInstalled will always return a named array, however the checks for "stuff" are all

isset(returned_data['somekey'])

which of course since the keys are set will pass, they are empty but set. I'm not sure the checks can be changed to empty() since 0 may be allowed (thats the part of me being lazy ATM and not wanting to wrap my head around it) ...

I guess one could also use null values in the default array and do a isnull check in place of isset.

OK please fix 馃槆

@eurich
Copy link
Member

eurich commented Jul 13, 2013

rofl, checked the logs... see 8019f69 ;)

@Spuds
Copy link
Contributor Author

Spuds commented Jul 13, 2013

Doh! ... And I thought Ema and Ant were getting old 馃槅

Although in my defense that commit was fine 馃懐 it was a later one where I added 2 more items to the default array (to mask errors) from someone else's refactor (meaning I blame @norv ) ... OK I'm off to fix this before I have to eat another turd sandwich !

@emanuele45
Copy link
Contributor

馃槺

We are all becoming too old for software development! 馃嵀

@Spuds
Copy link
Contributor Author

Spuds commented Jul 14, 2013

Back to hell with this one !

@Spuds Spuds closed this as completed Jul 14, 2013
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