** Description changed:

  python-mkdebian adds kde4 dependency if ui file is found also when none
  of kde4 classes is used.
  
  The error is locate in python-mkdebian:
  
  if subprocess.call('find -name "*.ui" | xargs grep -q \'<widget class="Q\'',
               shell=True) == 0:
           print 'Package uses KDE *.ui files, adding python-kde4-dev build 
dependency'
           bdeps += ',\n python-kde4-dev'
  
  ui files are grepped for classes beginning in Q when kde4 classes begins
  in K.
  
- 
  TEST-CASE:
  ----------
  
  Test-case:
-   cd /tmp
-   quickly create ubuntu-application test-project
-   cd test-project/
-   echo '<widget class="Q' > test.ui
-   bzr add test.ui
-   quickly package
+   cd /tmp
+   quickly create ubuntu-application test-project
+   cd test-project/
+   echo '<widget class="Q">' > test.ui
+   bzr add test.ui
+   quickly package
  
  Observe in debian/control: no build-dep on python-kde4-dev, if you
  change the 'Q' to 'K' in test.ui and re-run 'quickly package', it will
  get added as a build depends.
  
  REGRESSION POTENTIAL:
  ---------------------
  
  Almost no regression potential. As the changes mostly revolve around
  descriptive changes in the packaging of apps, there is little which can
  go wrong.

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

Title:
  python-mkdebian adds wrongly kde4 dependency

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-distutils-extra/+bug/1002076/+subscriptions

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

Reply via email to