def troveIsIncomplete(self, name, version, flavor):
        cu = self.db.cursor()

        if isinstance(flavor, deps.deps.Flavor) and not flavor.isEmpty():
            flavorStr = 'flavor = ?'
            flavorArgs = [flavor.freeze()]
        else:
            flavorStr = 'flavor IS NULL'
            flavorArgs = []

        cu.execute("""
                SELECT data FROM Instances
                    JOIN Versions USING (versionId)
                    JOIN Flavors ON
                        Instances.flavorId = Flavors.flavorId
                    JOIN TroveInfo ON
                        Instances.instanceId = TroveInfo.instanceId
                WHERE
                    infoType = ? AND
                    troveName = ? AND
                    version = ? AND
                    %s""" % flavorStr,
                        [trove._TROVEINFO_TAG_INCOMPLETE,
                         name, str(version)] + flavorArgs)
        frzIncomplete = cu.next()[0]
        return streams.ByteStream(frzIncomplete)() != 0