Fix logic detecting directories
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
cc5adaeb61
commit
ffd282031d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue