RTEMS | waf: Fix handling of the VERSION file in a release (!257)

Chris Johns (@chris) gitlab at rtems.org
Tue Oct 22 01:39:19 UTC 2024




Chris Johns commented on a discussion on wscript: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113440

 > +    prefix = None
 >      if cp.read([version_file]):
 > -        conf.msg("Configure RTEMS version from file",
 > -                 version_file,
 > -                 color="YELLOW")
 > -        for key in version:
 > -            try:
 > -                value = cp.get("RTEMS_VERSION", key)
 > -                version[key] = no_unicode(value)
 > -            except configparser.NoOptionError:
 > -                pass
 > +        try:
 > +            value = no_unicode(cp.get("version", "revision"))
 > +            # The revision is <major>.<minor>[-label]
 > +            # break is up and update the version
 > +            if '.' not in value:

Force of habit. I will change. All other python I have done in this project over many years uses `'x'` and you selected something different here.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113440
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241022/1cc85b57/attachment-0001.htm>


More information about the bugs mailing list