Changeset 1517 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Env.pm


Ignore:
Timestamp:
May 10, 2012, 6:07:28 PM (12 years ago)
Author:
Bruno Cornec
Message:

r4765@localhost: bruno | 2012-05-10 17:08:00 +0200

  • pb.conf: centos-5.6 moved python-libs into a separate package. List it or otherwise we can't run yum. Fix the mirror servers for centos-4,5 to just get the latest, and add mirror servers for 6.
  • pb.conf.pod: document addrepo, looked here and didn't find it, accidentally found it in code before adding it myself. Fix pod glitch at the end (missing =over/=back)
  • Distribution.pm: move the code to apply ftp_proxy/http_proxy from the conf files to a sub function since it's now needed in two places. Log the proxy and verify that everything we tried to install succeeded since yum will silently tolerate failing to install things, but rpmbuild will complain about missing dependencies. Tolerate an error from testing install of an rpm in pb_distro_setuprepo_gen.
  • Env.pm: Give an example of multi-line filters and an example of a transform.
  • VE.pm: If the verpmtype isn't defined, error out cleanly. Otherwise we're just going to fail later with lots of noisy output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Env.pm

    r1506 r1517  
    611611
    612612# PBDESC contains the description of the package
    613 #filter PBDESC = Bla-Bla
     613#filter PBDESC = Bla-Bla                                                 \
     614# with a trailing \, the variable can be multi-line.                     \
     615# only the trailing \'s will be removed, the leading spaces,             \
     616# trailing spaces, and newlines will remain except on the                \
     617# last line.  You can use dollar slash as a way to introduce carraige    \
     618# return (perl syntax).                                                  \
     619# You can use transform e.g. in rpm.pbf to adjust spaces
    614620
    615621# PBSUMMARY contains a short single line description of the package
     
    647653# PBOBS is replaced by the Obsolete line
    648654#filter PBOBS =
     655
     656# transform a variable from the key on the right to the key on the left using the perl expression
     657# after the input key name.  Useful for taking multi-line documentation and removing trailing spaces
     658# or leading spaces.
     659#transform PBDESC = PBDESC_raw s/\s+\n/\n/go;
    649660
    650661EOF
Note: See TracChangeset for help on using the changeset viewer.