From 39f7520c1ab490af17730df700517a4706df6302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 17 Nov 2005 00:49:06 +0000 Subject: [PATCH] autoxml rocks --- pisi/metadata.py | 5 +- tests/popt/metadata.xml | 168 ++++++++++++++++++++-------------------- 2 files changed, 88 insertions(+), 85 deletions(-) diff --git a/pisi/metadata.py b/pisi/metadata.py index 9712dcf3..588bee0b 100644 --- a/pisi/metadata.py +++ b/pisi/metadata.py @@ -38,7 +38,10 @@ class Source: class Package(specfile.Package): __metaclass__ = autoxml.autoxml - + + # if this is working autoxml r0Xx0rz + t_PartOf = [autoxml.String, autoxml.mandatory] + t_Build = [ autoxml.Integer, autoxml.optional] t_Distribution = [ autoxml.String, autoxml.mandatory] t_DistributionRelease = [ autoxml.String, autoxml.mandatory] diff --git a/tests/popt/metadata.xml b/tests/popt/metadata.xml index 74127914..286dfe84 100644 --- a/tests/popt/metadata.xml +++ b/tests/popt/metadata.xml @@ -1,87 +1,87 @@ - - - popt - - - - Kırmızı kafalar - - - hotmail@redhat.com - - - - - - popt-libs - - - Command line option parsing library - - - library files for popt - - - As-Is - - - library:util:optparser - - - rpm:archive - - - - gettext - - - - - /usr/lib - - - /usr/share/doc - - - /usr/share/man - - - /usr/share/locale - - - /usr/include/popt.h - - - - - 2005-06-14 - 1.7 - - - 2005-06-10 - 1.7 - - - 2005-05-05 - 1.7 - - - - 0 - - - Pardus - - - 0.1 - - - Any - - - 149691 - - + + + popt + + + + Kırmızı kafalar + + + hotmail@redhat.com + + + + + + popt-libs + + + Command line option parsing library + + + library files for popt + + + As-Is + + + library:util:optparser + + + rpm:archive + + + + gettext + + + + + /usr/lib + + + /usr/share/doc + + + /usr/share/man + + + /usr/share/locale + + + /usr/include/popt.h + + + + + 2005-06-14 + 1.7 + + + 2005-06-10 + 1.7 + + + 2005-05-05 + 1.7 + + + + 0 + + + Pardus + + + 0.1 + + + Any + + + 149691 + +