123456789101112131415161718192021222324252627282930313233343536373839404142434445464748(*****************************************************************************)(* libCUDF - CUDF (Common Upgrade Description Format) manipulation library *)(* Copyright (C) 2009-2012 Stefano Zacchiroli <zack@upsilon.cc> *)(* *)(* This library is free software: you can redistribute it and/or modify *)(* it under the terms of the GNU Lesser General Public License as *)(* published by the Free Software Foundation, either version 3 of the *)(* License, or (at your option) any later version. A special linking *)(* exception to the GNU Lesser General Public License applies to this *)(* library, see the COPYING file for more information. *)(*****************************************************************************)openCudf_typestypestanza_typedecl=(string*typedecl)listletpreamble_typedecl=["preamble",`StringNone;"property",`Typedecl(Some[]);"univ-checksum",`String(Some"");"status-checksum",`String(Some"");"req-checksum",`String(Some"");]letpackage_typedecl=["package",`PkgnameNone;"version",`PosintNone;"depends",`Vpkgformula(Some[]);"conflicts",`Vpkglist(Some[]);"provides",`Veqpkglist(Some[]);"installed",`Bool(Somefalse);"was-installed",`Bool(Somefalse);"keep",`Enum(keep_enums,Some"none");]letrequest_typedecl=["request",`StringNone;"install",`Vpkglist(Some[]);"remove",`Vpkglist(Some[]);"upgrade",`Vpkglist(Some[]);]letstanza_typedecl=["preamble",preamble_typedecl;"package",package_typedecl;"request",request_typedecl;]