Changeset 2820 for trunk/packages/invirt-dev
- Timestamp:
- Dec 31, 2009, 3:16:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirtibuilder
r2801 r2820 354 354 class Invirtibuilder(pyinotify.ProcessEvent): 355 355 """Process inotify triggers to build new packages.""" 356 def process_ IN_CREATE(self, event):357 """Handle a created file or directory.358 359 When an IN_CREATEevent comes in, trigger the builder.356 def process_default(self, event): 357 """Handle an inotify event. 358 359 When an inotify event comes in, trigger the builder. 360 360 """ 361 361 build() … … 370 370 notifier = pyinotify.Notifier(watch_manager, invirtibuilder) 371 371 watch_manager.add_watch(b._QUEUE_DIR, 372 pyinotify.EventsCodes.ALL_FLAGS['IN_CREATE']) 372 pyinotify.EventsCodes.ALL_FLAGS['IN_CREATE'] | 373 pyinotify.EventsCodes.ALL_FLAGS['IN_MOVED_TO']) 373 374 374 375 # Before inotifying, run any pending builds; otherwise we won't
Note: See TracChangeset
for help on using the changeset viewer.