Fix logic detecting directories

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2020-06-16 17:39:01 +02:00
parent cc5adaeb61
commit ffd282031d

View file

@ -570,7 +570,7 @@ class RepoManager(object):
symlink = False
if stat.S_ISLNK(dirstat.st_mode):
symlink = True
elif stat.S_ISDIR(dirstat.st_mode):
elif not stat.S_ISDIR(dirstat.st_mode):
self.logger.debug("%s not a directory, skipping", repodir)
continue
dir_ts = dirstat.st_mtime