mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add check for leftover old file locations when installing the packages
This commit is contained in:
parent
b644e2d25b
commit
a3293afcca
1 changed files with 4 additions and 0 deletions
|
@ -591,6 +591,10 @@ class SaltPkgInstall:
|
|||
else:
|
||||
log.info("Installing packages:\n%s", pprint.pformat(self.pkgs))
|
||||
ret = self.proc.run(self.pkg_mngr, "install", "-y", *self.pkgs)
|
||||
if not (platform.is_darwin() or platform.is_windows()):
|
||||
# Make sure we don't have any trailing references to old package file locations
|
||||
assert "No such file or directory" not in ret.stdout
|
||||
assert "/saltstack/salt/run" not in ret.stdout
|
||||
log.info(ret)
|
||||
self._check_retcode(ret)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue