location.in: Fix Bug14047 - Change return to return 3 on line 471
Commit Message
- This now makes location return 3 if the database is alreadt at the latest version. This
is then in line with the man page wording
Fixes: Bug14047
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
src/scripts/location.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -468,7 +468,7 @@ class CLI(object):
# Check the version of the local database
if db and t and db.created_at >= t:
log.info("Already on the latest version")
- return
+ return 3
# Download the database into the correct directory
tmpdir = os.path.dirname(ns.database)