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

def falcon::package::BinaryPackage::create_from_debfile (   cls,
  source,
  filename 
)

Create a BinaryPackage instance, given a SourcePackage and the name
   of a .deb file belonging to that package

Definition at line 275 of file package.py.

00275                                                   :
        """Create a BinaryPackage instance, given a SourcePackage and the name
           of a .deb file belonging to that package"""
        control, controlfields, files = parse_deb(filename, source.component)
        p = cls(
            sourcepackage = source,
            filename = filename,
            mtime = os.path.getmtime(os.path.join(source.component.poolpath, filename)),
            packagename = controlfields['Package'],
            architecture = controlfields['Architecture'],
            version = controlfields['Version'],
            control = control,
            controlfields = controlfields,
            files = files
        )
        p.save()

    def rescan(self):


Generated by  Doxygen 1.6.0   Back to index