From 836a390b910bc2e0945f41d1c9f8a5f39e556ef8 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 6 May 2016 16:05:13 -0400 Subject: [PATCH] Add semi-colon as separator for parsing package names If we don't do this then the following line: weakrefmethod;python_version=='2.7' or python_version=='2.6' # PSF ends up as: weakrefmethod;python_version in the cruft output. So we need to add ';' to get the output as 'weakrefmethod' Change-Id: I7b32bfe70df3bb24ca301db9952d76451674a0db --- tools/cruft.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cruft.sh b/tools/cruft.sh index e40fa7ff3b..ce81a36edc 100755 --- a/tools/cruft.sh +++ b/tools/cruft.sh @@ -82,7 +82,7 @@ set +x # Loop over the set of package names from the global requirements list. for CANDIDATE in $( - sed -e '/^\($\|#\)/d' -e 's/^\([^<>=! ]*\).*/\1/' global-requirements.txt + sed -e '/^\($\|#\)/d' -e 's/^\([^<>=!; ]*\).*/\1/' global-requirements.txt ); do # Search for the package name in the set of project requirements, # normalizing hyphens to underscores, and output the package name if