From 9aa31bcce757b3659b9d24ba7ba57b2b8897ea4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 20 Feb 2011 14:30:03 +0000 Subject: [PATCH] specfile: Accept BuildType tag inside Package tags It is not functional at this time. --- pisi-spec.dtd | 3 +++ pisi-spec.rng | 10 ++++++++++ pisi/specfile.py | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pisi-spec.dtd b/pisi-spec.dtd index 55550207..a12a95e5 100644 --- a/pisi-spec.dtd +++ b/pisi-spec.dtd @@ -52,6 +52,8 @@ + + @@ -82,6 +84,7 @@ PartOf | Summary | Description | + BuildType | RuntimeDependencies | Files | Conflicts | diff --git a/pisi-spec.rng b/pisi-spec.rng index bdb087fb..dff1ada4 100644 --- a/pisi-spec.rng +++ b/pisi-spec.rng @@ -85,6 +85,9 @@ + + + @@ -1333,6 +1336,13 @@ + + + + + + + diff --git a/pisi/specfile.py b/pisi/specfile.py index 3f5cfee7..82fc2a86 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2005-2010, TUBITAK/UEKAE +# Copyright (C) 2005-2011, TUBITAK/UEKAE # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -232,6 +232,7 @@ class Package: t_PartOf = [autoxml.String, autoxml.optional] t_License = [ [autoxml.String], autoxml.optional] t_Icon = [ autoxml.String, autoxml.optional] + t_BuildType = [ autoxml.String, autoxml.optional ] t_PackageDependencies = [ [pisi.dependency.Dependency], autoxml.optional, "RuntimeDependencies/Dependency"] t_PackageAnyDependencies = [[AnyDependency], autoxml.optional, "RuntimeDependencies/AnyDependency"] t_ComponentDependencies = [ [autoxml.String], autoxml.optional, "RuntimeDependencies/Component"]