diff --git a/installsystems/repository.py b/installsystems/repository.py
index fac53d543abe18e061f722cf5c670876523a5e31..8c04ce9222bad6a9113d98d5be7a6c751cdff2e7 100644
--- a/installsystems/repository.py
+++ b/installsystems/repository.py
@@ -67,6 +67,7 @@ class Repository(object):
 
     def __init__(self, config):
         self.config = config
+        self.version = 1
         if not config.offline:
             try:
                 self.db = Database(config.dbpath)