add more logic while processing EPKG_ENODB
Merge pull request #802 from andrejzverev/issue765

Fix processing of `EPKG_ENODB` in pkg-search.