diff --git a/package_meta.h b/package_meta.h index b24d4fc..3d2b775 100644 --- a/package_meta.h +++ b/../src2/package_meta.h @@ -105,12 +105,14 @@ public: if (_default && curr && installed && packageversion::compareVersions (curr, installed) < 0) { - if (exp && packageversion::compareVersions (installed, exp) < 0) +// Henri: no, no, no ... first check whether the associated tarball is in the repo or not! + if (exp.accessible() && exp && packageversion::compareVersions (installed, exp) < 0) return exp; return installed; } /* Otherwise, if a "curr" version exists, return "curr". */ - if (curr) +// Henri: no, no, no ... first check whether the associated tarball is in the repo or not! + if (curr.accessible() && curr) return curr; /* Otherwise return the installed version. */ return installed;