#1064 Don't try to delete missing paths
Closed 3 years ago by tkopecek. Opened 5 years ago by tkopecek.
tkopecek/koji issue1063  into  master

file modified
+1 -1
@@ -160,7 +160,7 @@ 

                  # No such file or directory, so the repo either never existed,

                  # or has already been deleted, so allow it to be marked deleted.

                  self.logger.info("Repo directory does not exist: %s" % path)

-                 pass

+                 return True

              else:

                  self.logger.error("Can't stat repo directory: %s, %s" % (path, e.strerror))

                  return False

By returning at this point, you skip the part where kojira marks the repo as deleted in the db. This avoids the cosmetic error, but will result in the entry persisting forever. So, kojira will run this code for such repos repeatedly and without end.

pretty please pagure-ci rebuild

4 years ago

Pull-Request has been closed by tkopecek

3 years ago