Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12634: .pyc file are not cleand up during postinst #1598

Conversation

amousset
Copy link
Member

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the bug_12634/pyc_file_are_not_cleand_up_during_postinst branch from 87278b7 to 960fd3c Compare May 24, 2018 13:43
@@ -247,6 +247,10 @@ fi
# Enable mod_wsgi using a2enmod
a2enmod wsgi >/dev/null 2>&1

# Remove .pyc files to ensure we don't end up with outdated files
rm -f %{installdir}/tools/ncf.pyc
rm -f %{installdir}/tools/ncf_constraints.pyc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should also rm ncf_rudder.pyc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(in fact i would do

find %{installdir}/tools -name "*.pyc" -exec rm -f {} \;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, in fact ncf_rudder does not make a pyc ..., i would still do a find :)

@peckpeck
Copy link
Member

We should create another issue to make sure we never forget a .pyc file in any packages.
For today, this is sufficient I think

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 960fd3c into Normation:branches/rudder/4.1 May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants