Logo Search packages:      
Sourcecode: falcon version File versions  Download package

def falcon::package::SourcePackage::rescan (   self  ) 

Scan the component for existence/updates of this package and its
   binary packages

Definition at line 174 of file package.py.

00174                     :
        """Scan the component for existence/updates of this package and its
           binary packages"""
        if not self.is_fake and not os.path.exists(os.path.join(self.component.poolpath, self.filename)):
            self.delete() # Also deletes its binaries
            return []

        if not self.is_fake and (os.path.getmtime(os.path.join(self.component.poolpath, self.filename)) != self.mtime):
            falcon.util.warning("Source package %s changed after installing" % self.filename)
            self.control, self.controlfields, files = parse_dsc(os.path.join(self.component.poolpath, self.filename))
            self.files = [x.name for x in files]
            self.mtime = os.path.getmtime(os.path.join(self.component.poolpath, self.filename))
            self.packagename = self.controlfields['source']
            self.version = self.controlfields['version']
            self.changelog = get_changelog(self.component.poolpath, self.files)
            must_save = True
        for f in self.files[:]:
            if not os.path.exists(os.path.join(self.component.poolpath, f)):
                falcon.util.warning(_("File %s seems to be missing!") % f)
        for b in self.binaries.all():
            if not b.rescan():
                if b.filename in self.files:
                if b.filename not in self.files:

        if not self.is_fake:
        return self.files

    def sorted_binaries(self):

Generated by  Doxygen 1.6.0   Back to index