Пример #1
0
    def setup(self):
        assert not self.isSetup

        self.isSetup = True

        if os.path.isdir(self.path):
            raise StandardError("Sandbox path already exists %s" % self.path)

        for c in self.componentsToUse:
            self.builder.copyComponent(c, self.path)

        self.initialDigests = digestsInPath(self.path, relative=False)
Пример #2
0
    def setup(self):
        assert not self.isSetup

        self.isSetup = True

        if os.path.isdir(self.path):
            raise StandardError("Sandbox path already exists %s" % self.path)

        for c in self.componentsToUse:
            self.builder.copyComponent(c, self.path)

        self.initialDigests = digestsInPath(self.path, relative=False)
Пример #3
0
    def changes(self):
        assert self.isSetup

        digests = digestsInPath(self.path, relative=False)

        return differencesBetweenDigests(self.initialDigests, digests)
Пример #4
0
    def changes(self):
        assert self.isSetup

        digests = digestsInPath(self.path, relative=False)

        return differencesBetweenDigests(self.initialDigests, digests)