** Description changed:

  I use dh_python3 in python3 3.2-1.
  
  When building deb package which uses python3 and includes only private
  modules, dh_python3 incorrectly inserts prerm-pyclean into the prerm
  scripts instead of prerm-py3clean:
  
  ============================================================
  #!/bin/sh
  set -e
  
  # Automatically added by dh_python3:
  if which pyclean >/dev/null 2>&1; then
-       pyclean -p blender2.5 
+  pyclean -p blender2.5
  else
-       dpkg -L blender2.5 | grep \.py$ | while read file
-       do
-               rm -f "${file}"[co] >/dev/null
-       done
+  dpkg -L blender2.5 | grep \.py$ | while read file
+  do
+   rm -f "${file}"[co] >/dev/null
+    done
  fi
  
  # End automatically added section
  ============================================================
  
  So, when upgrading my package using dh_python3, I got many warnings and
  many unnecessary .pyc files remained in my system.
  
- I also tested python3 3.2-1 which was taken from Debian sid, and
+ I also tested python3 3.2-2 which was taken from Debian sid, and
  confirmed that the bug is still in the upstream latest version.
  
  I have already reported this bug at Debian bug tracker and posted a
  patch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/760401

Title:
  dh_python3 generates incorrect prerm script which cannot remove .pyc
  files

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to