amiga03 / wpkgexpress

Automatically exported from code.google.com/p/wpkgexpress
GNU General Public License v3.0
0 stars 0 forks source link

Can't use variable in revision #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define a variable in the package
2. Try to use the variable as revision like %VERSION%
3.

What is the expected output? What do you see instead?
Error: "The package's revision attribute is not formatted properly. It must 
start with a digit. If it contains periods, you must have at least one digit 
after each period."

What version of the product are you using? On what operating system?
1.0-r12

Please provide any additional information below.

Original issue reported on code.google.com by beckerma...@googlemail.com on 23 Apr 2011 at 9:05

GoogleCodeExporter commented 9 years ago
I take the liberty to up this problem as I also encounter it. It is too bad 
that we can't use variables as it is really useful. Is there a solution to fix 
this ?

Original comment by gui.char...@gmail.com on 30 May 2011 at 9:51

GoogleCodeExporter commented 9 years ago
It looks like wpkg does not support variables for the revision field yet, so 
wpkgExpress won't either.

Original comment by msc...@gmail.com on 30 May 2011 at 10:45

GoogleCodeExporter commented 9 years ago
But that's not true. WPKG support variables in revision since version 1.1.2
See this page: http://wpkg.org/Packages.xml

Original comment by beckerma...@googlemail.com on 30 May 2011 at 4:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I see the example, but according to the latest packages.xsd from svn:

<xsd:attribute name="revision" use="optional">
  <xsd:annotation>
    <xsd:documentation>
      Revision of the package. in the format of
      "\d+(\.\d+)*" which means actually integer digits
      separated by periods (x.y.z) with any number of
      integer values. A pure integer value is valid too.
      Optional. Defaults to 0.
    </xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="\d+(\.\d+)*"></xsd:pattern>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:attribute>

If variables are indeed permitted in the revision attribute, then the wpkg 
author(s) need to update packages.xsd to reflect this, otherwise they need to 
edit their documentation to remove the revision variable example.

Original comment by msc...@gmail.com on 30 May 2011 at 4:53