thelema / odb

Oasis-db downloader and installer
Do What The F*ck You Want To Public License
33 stars 7 forks source link

Invalid package status #10

Closed superbobry closed 13 years ago

superbobry commented 13 years ago

I have OCaml 3.11.2 and findlib 1.2.5 on Ubuntu Maverick; package status detection seem to work incorrectly:

yooki :: /tmp » ocaml odb.ml
Available packages: batteries camlimages camlzip camomile expect extlib fileutils oUnit oasis ocamlgraph ocamlify odn pcre type-conv
yooki :: /tmp » ocaml odb.ml foo 
Package foo already installed, use --force to reinstall
thelema commented 13 years ago

You're right - I didn't handle the case where there's no installed program vs. no version required properly. Fixed in commit 00456e02.

superbobry commented 13 years ago

Thanks :)

thelema commented 13 years ago

It looks like there's more bugs left in this code - I'll dig in more later tonight.

thelema commented 13 years ago

Hopefully fixed now. If it's not, reopen with an example.