* fix: the simplest way to store source info in repository (a nice

workaround)
This commit is contained in:
Eray Özkural
2006-04-20 13:24:32 +00:00
parent c2fa9891a5
commit 6a033f1010
2 changed files with 7 additions and 3 deletions
+4 -3
View File
@@ -48,6 +48,7 @@ class Index(XmlFile):
t_Distribution = [ component.Distribution, autoxml.optional ] t_Distribution = [ component.Distribution, autoxml.optional ]
t_Specs = [ [specfile.SpecFile], autoxml.optional, "SpecFile"] t_Specs = [ [specfile.SpecFile], autoxml.optional, "SpecFile"]
t_Packages = [ [metadata.Package], autoxml.optional, "Package"] t_Packages = [ [metadata.Package], autoxml.optional, "Package"]
#t_Metadatas = [ [metadata.MetaData], autoxml.optional, "MetaData"]
t_Components = [ [component.Component], autoxml.optional, "Component"] t_Components = [ [component.Component], autoxml.optional, "Component"]
def name(): def name():
@@ -63,9 +64,9 @@ class Index(XmlFile):
pisi.util.clean_dir(tmpdir) pisi.util.clean_dir(tmpdir)
pisi.util.check_dir(tmpdir) pisi.util.check_dir(tmpdir)
if not force: if not force:
urlfile = file(pisi.util.join_path(tmpdir, 'uri'), 'w') urlfile = file(pisi.util.join_path(tmpdir, 'uri'), 'w')
urlfile.write(filename) # uri urlfile.write(filename) # uri
# FIXME: This is a mess, we have a compress flag and we have to # FIXME: This is a mess, we have a compress flag and we have to
+3
View File
@@ -50,6 +50,8 @@ class Package(specfile.Package):
t_PackageSize = [ autoxml.Long, autoxml.optional] t_PackageSize = [ autoxml.Long, autoxml.optional]
t_PackageURI = [ autoxml.String, autoxml.optional] t_PackageURI = [ autoxml.String, autoxml.optional]
t_Source = [ Source, autoxml.optional]
def decode_hook(self, node, errs, where): def decode_hook(self, node, errs, where):
self.version = self.history[0].version self.version = self.history[0].version
self.release = self.history[0].release self.release = self.history[0].release
@@ -79,6 +81,7 @@ class MetaData(xmlfile.XmlFile):
self.source.name = src.name self.source.name = src.name
self.source.homepage = src.homepage self.source.homepage = src.homepage
self.source.packager = src.packager self.source.packager = src.packager
self.package.source = self.source # FIXME: I know that replication sucks here, but this is the easiest for now-- exa
self.package.name = pkg.name self.package.name = pkg.name
self.package.summary = pkg.summary self.package.summary = pkg.summary
self.package.description = pkg.description self.package.description = pkg.description