[csw-devel] SF.net SVN: gar:[13553] csw/mgar/gar/v2/gar.pkg.mk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Mar 4 03:54:40 CET 2011


Revision: 13553
          http://gar.svn.sourceforge.net/gar/?rev=13553&view=rev
Author:   bdwalton
Date:     2011-03-04 02:54:40 +0000 (Fri, 04 Mar 2011)

Log Message:
-----------
.buildsys/v2: fix string cutting glitch in obsolete package description creation (no more word boundaries...)

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.pkg.mk

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2011-03-04 01:41:29 UTC (rev 13552)
+++ csw/mgar/gar/v2/gar.pkg.mk	2011-03-04 02:54:40 UTC (rev 13553)
@@ -57,8 +57,9 @@
 
 define obsoleted_pkg
 CATALOGNAME_$(1) = $(call catalogname,$(1))
-# The length of the description has been limited to 100 characters, the string is cut only on word boundaries
-SPKG_DESC_$(1) ?= $(shell echo Transitional package as contents moved to $(foreach P,$(PACKAGES),$(if $(filter $(1),$(OBSOLETES_$P)),$P)) | perl -npe 's/^(.{0,96})\s.+/$$1 .../')
+# The length of the description has been limited to 100 characters,
+# the string is cut (no longer on word boundaries).
+SPKG_DESC_$(1) ?= $(shell echo Transitional package. Content moved to $(foreach P,$(PACKAGES),$(if $(filter $(1),$(OBSOLETES_$P)),$P)) | perl -npe 's/^(.{100}).+/substr($$1,0,-4) . " ..."/')
 RUNTIME_DEP_PKGS_$(1) = $(foreach P,$(PACKAGES),$(if $(filter $(1),$(OBSOLETES_$P)),$P))
 PKGFILES_$(1) = NOFILES
 ARCHALL_$(1) = 1


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list