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

def falcon::package::SourcePackage::get_binaries (   self,
  missing_only = False 
)

Find the binary packages that belong to this SourcePackage

Definition at line 119 of file package.py.

00119                                               :
        """Find the binary packages that belong to this SourcePackage"""

        # Strip epoch
        eversion = version = self.version
        if ':' in version:
            eversion = version[version.find(':')+1:]

        binaries = [x.strip() for x in self.controlfields['Binary'].split(",")]

        for b in binaries:
            try:
                BinaryPackage.objects.get(packagename=b, architecture='all', version=version, sourcepackage__component=self.component)
                continue
            except BinaryPackage.DoesNotExist:
                pass
            f = '%s_%s_all.deb' % (b, eversion)
            if os.path.exists(os.path.join(self.component.poolpath, f)):
                BinaryPackage.create_from_debfile(self, f)
                self.files.append(f)
                continue
            f = '%s_%s_all.udeb' % (b, eversion)
            if os.path.exists(os.path.join(self.component.poolpath, f)):
                BinaryPackage.create_from_debfile(self, f)
                self.files.append(f)
                continue

            # Find arch specific packages
            for a in falcon.conf.architectures:
                try:
                    BinaryPackage.objects.get(packagename=b, architecture=a, version=version, sourcepackage__component=self.component)
                    continue
                except BinaryPackage.DoesNotExist:
                    pass
                f = '%s_%s_%s.deb' % (b, eversion, a)
                if os.path.exists(os.path.join(self.component.poolpath, f)):
                    BinaryPackage.create_from_debfile(self, f)
                    self.files.append(f)
                    continue
                f = '%s_%s_%s.udeb' % (b, eversion, a)
                if os.path.exists(os.path.join(self.component.poolpath, f)):
                    BinaryPackage.create_from_debfile(self, f)
                    self.files.append(f)

            for a in falcon.conf.architectures:
                try:
                    BinaryPackage.objects.get(packagename=b + '-dbgsym', architecture=a, version=version, sourcepackage__component=self.component)
                    continue
                except BinaryPackage.DoesNotExist:
                    pass
                f = '%s-dbgsym_%s_%s.ddeb' % (b, eversion, a)
                if os.path.exists(os.path.join(self.component.poolpath, f)):
                    BinaryPackage.create_from_debfile(self, f)
                    self.files.append(f)

    def rescan(self):


Generated by  Doxygen 1.6.0   Back to index