diff --git a/code/client/makecatalogs b/code/client/makecatalogs index 7b6b751a..be403d23 100755 --- a/code/client/makecatalogs +++ b/code/client/makecatalogs @@ -294,16 +294,16 @@ def makecatalogs(repopath, options): exit_code = -1 continue - # Check if the uninstaller item actually exists - if not os.path.exists(uninstalleritempath): - errors.append("WARNING: Info file %s refers to " - "missing uninstaller item: %s" % - (filepath[len(pkgsinfopath)+1:], - pkginfo['uninstaller_item_location'])) - # Skip this pkginfo unless we're running with force flag - if not options.force: - exit_code = -1 - continue + # Check if the uninstaller item actually exists + if not os.path.exists(uninstalleritempath): + errors.append("WARNING: Info file %s refers to " + "missing uninstaller item: %s" % + (filepath[len(pkgsinfopath)+1:], + pkginfo['uninstaller_item_location'])) + # Skip this pkginfo unless we're running with force flag + if not options.force: + exit_code = -1 + continue catalogs['all'].append(pkginfo) for catalogname in pkginfo.get("catalogs", []):