-e 's,@FIRST_KEY\@,key = self.db.firstkey(),g' \
-e 's,@CHECK_KEY\@,while key is not None:,g' \
-e 's,@NEXT_KEY\@,key = self.db.nextkey(key),g' \
- -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@
+ -e 's,@pkglibdir\@,$(pkglibdir),g' $< > $@
chmod +x $@
endif
-e 's,@FIRST_KEY\@,keys = self.db.keys(),g' \
-e 's,@CHECK_KEY\@,for key in keys:,g' \
-e 's,@NEXT_KEY\@,,g' \
- -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@
+ -e 's,@pkglibdir\@,$(pkglibdir),g' $< > $@
chmod +x $@
endif
class ServiceTypeDatabase:
- def __init__(self, filename = "@pkgdatadir@/service-types.db"):
+ def __init__(self, filename = "@pkglibdir@/service-types.db"):
self.db = @DBM@.open(filename, "r")