Don't fire helper for executable requires.
authorjbj <devnull@localhost>
Thu, 26 Dec 2002 23:19:17 +0000 (23:19 +0000)
committerjbj <devnull@localhost>
Thu, 26 Dec 2002 23:19:17 +0000 (23:19 +0000)
CVS patchset: 5974
CVS date: 2002/12/26 23:19:17

build/rpmfc.c

index bbe885b..905b091 100644 (file)
@@ -708,11 +708,13 @@ static int rpmfcSCRIPT(rpmfc fc)
 
     if (fc->fcolor->vals[fc->ix] & RPMFC_PERL) {
        xx = rpmfcHelper(fc, 'P', "perl");
-       xx = rpmfcHelper(fc, 'R', "perl");
+       if (is_executable)
+           xx = rpmfcHelper(fc, 'R', "perl");
     }
     if (fc->fcolor->vals[fc->ix] & RPMFC_PYTHON) {
        xx = rpmfcHelper(fc, 'P', "python");
-       xx = rpmfcHelper(fc, 'R', "python");
+       if (is_executable)
+           xx = rpmfcHelper(fc, 'R', "python");
     }
 
     return 0;