Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P piuparts
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • DebianDebian
  • piuparts
  • Merge requests
  • !25

Makefile: delete __pycache__ dirs in make clean

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Nis Martensen requested to merge nma/piuparts:pycache_rules into develop Jan 12, 2020
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Move __pycache__ directory removal from debian/rules to the clean Makefile target. The change should have no effect on the generated packages; it just makes make clean more complete and debian/rules simpler.

Instead of using a shell loop for passing the files to rm, also use find's -delete option, avoiding any potential issues with weird filenames.

Since the __pycache__ folders may contain .pyc files, make sure these are all deleted before.

Edited Jan 12, 2020 by Nis Martensen
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pycache_rules