Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-9547

[metatools]: version with trailing 0's (under the "revision" key) not parsed properly

    • Icon: Bug Bug
    • Resolution: Expected Behavior
    • Icon: Normal Normal
    • None
    • None

      In autogen.yaml, we can have a stanza that looks like, .e.g.:

          - patch:
              cat: sys-devel
              version: '2.7.6'
              revision:
                2.7.6: 4

       

      However, for a version number with trailing zeros (like "3.10") this fails:

          - netsurf:
              cat: www-client
              url_suffix: netsurf/releases/source-full
              revision:
                3.10: 4

       

      We can see from a `doit` run given the above config, that the version number parsed under revision becomes "3.1" instead, and the ebuild always comes out as netsurf-3.10.ebuild:

       

      {'url_suffix': 'netsurf/releases/source-full', 'cat': 'www-client', 'revision':

      {3.1: 4}

      , 'name': 'netsurf', 'template_path': '/home/seemant/funtoo/kits/kit-fixups/browser-kit/curated/www-client/netsurf/templates', 'sub_path': '/home/seemant/funtoo/kits/kit-fixups/browser-kit/curated/www-client/netsurf/generator.py', 'gen_path': '${REPODIR}/www-client/netsurf'}
      (<Version('3.10')>, 'netsurf-all-3.10.tar.gz')

       

       

       

            drobbins drobbins
            seemant seemant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: