# HG changeset patch # User Christopher Rogers # Date 1305395622 0 # Node ID a1a93b2d3ed997d14d14eb061fad39da65fb907e # Parent 4a8f8f35014ec048fb2f3e29facc7930b7085b7e Fixed python compiled files to be removed after files.list is made. Added perl_compiled_files_remove function to remove these files before files.list is made since these are only made when compiling. diff -r 4a8f8f35014e -r a1a93b2d3ed9 tazwok --- a/tazwok Sat May 14 13:51:21 2011 +0000 +++ b/tazwok Sat May 14 17:53:42 2011 +0000 @@ -930,12 +930,19 @@ report end-step } -# Remove .pyc, .pyo, perllocal.pod and .packlist files from packages. +# Remove .pyc and .pyo files from packages. py_compiled_files_remove() { - report step "Removing all .pyc, .pyo, perllocal.pod, and .packlist files from package" + report step "Removing all .pyc and .pyo files from package" find $fs -type f -name "*.pyc" -delete 2>/dev/null find $fs -type f -name "*.pyo" -delete 2>/dev/null + report end-step +} + +# Removing all perllocal.pod and .packlist files from package +perl_compiled_files_remove() +{ + report step "Removing all perllocal.pod and .packlist files from package" find $fs -type f -name "perllocal.pod" -delete 2>/dev/null find $fs -type f -name ".packlist" -delete 2>/dev/null report end-step @@ -1068,7 +1075,7 @@ copy_generic_files fi look_for_cookopt !strip || strip_package - py_compiled_files_remove + perl_compiled_files_remove else echo "No package rules to gen $PACKAGE..." >&2 set_pkg_broken @@ -1116,6 +1123,8 @@ LAST_FILE="$file" done > files.list + py_compiled_files_remove + # Next, check if something has changed in lib files. if fgrep -q '.so' files.list; then for rep in $INCOMING_REPOSITORY $PACKAGES_REPOSITORY \