diff --git a/dvc/updater.py b/dvc/updater.py index 6811f9983..2bb1d604d 100644 --- a/dvc/updater.py +++ b/dvc/updater.py @@ -48,7 +48,7 @@ class Updater(object): # pragma: no cover logger.debug(msg.format(self.lock.lockfile, action)) def check(self): - if os.getenv("CI") or env2bool("DVC_TEST") or env2bool("SNAP"): + if os.getenv("CI") or env2bool("DVC_TEST") or PKG == "snap": return self._with_lock(self._check, "checking") diff --git a/snapcraft.yaml b/snapcraft.yaml index b77a7c944..d90856c1e 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -31,6 +31,5 @@ apps: completer: completion.sh environment: GIT_PYTHON_GIT_EXECUTABLE: dvc.git - SNAP: 1 # suppress update checks git: command: /usr/bin/git