watch /var/cache/yum toplevel (jantill)
authorJeremy Katz <katzj@redhat.com>
Thu, 19 Jul 2007 21:29:18 +0000 (17:29 -0400)
committerJeremy Katz <katzj@redhat.com>
Thu, 19 Jul 2007 21:29:18 +0000 (17:29 -0400)
yum-updatesd

index 035ac52..323ae2a 100755 (executable)
@@ -199,6 +199,7 @@ def setup_watcher():
     # add some watches on directories.  check them every 15 seconds
     mon = gamin.WatchMonitor()
     mon.watch_directory("/var/lib/rpm", invalidate_cache)
+    mon.watch_directory("/var/cache/yum", invalidate_cache)    
     map(lambda x: mon.watch_directory("/var/cache/yum/%s" %(x,),
                                       invalidate_cache),
         os.listdir("/var/cache/yum"))