- remove superfluous slash in pl_move_dir
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 22 Feb 2008 19:47:33 +0000 (19:47 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 22 Feb 2008 19:47:33 +0000 (19:47 +0000)
- do not escape + and - signs in the grep/sed regex to find/remove
  package+$fcdistro.  This does appear a bit fishy as the old code
  looks correct, but it did not work properly on f8.

build.common

index 23d282d..983ed75 100644 (file)
@@ -609,7 +609,7 @@ function pl_move_dirs() {
        fi
        rm -rf ${root}/${datadir}
        mkdir -p $(dirname ${root}/${datadir})
-       ln -nsf /${store}/${datadir} ${root}/${datadir}
+       ln -nsf ${store}/${datadir} ${root}/${datadir}
     done
 }
 
@@ -684,9 +684,9 @@ function pl_parsePkgs () {
     # grab regular descriptions
     all=$(grep -v '^#' "$@" | grep --regexp="^${keyword}:" | sed -e "s,${keyword}:,,")
     # grab additions
-    add=$(grep -v '^#' "$@" | grep --regexp="^${keyword}+${fcdistro}:" | sed -e "s,${keyword}\+${fcdistro}:,,")
+    add=$(grep -v '^#' "$@" | grep --regexp="^${keyword}+${fcdistro}:" | sed -e "s,${keyword}+${fcdistro}:,,")
     # grab exclusions
-    sub=$(grep -v '^#' "$@" | grep --regexp="^${keyword}\-${fcdistro}:" | sed -e "s,${keyword}\-${fcdistro}:,,")
+    sub=$(grep -v '^#' "$@" | grep --regexp="^${keyword}-${fcdistro}:" | sed -e "s,${keyword}-${fcdistro}:,,")
 
     for i in $all $add; do
        for exclude in $sub; do