[Bug 953857] [NEW] edit-patch.sh looks for edit-patch which make it fail to run a subshell

Francisco Javier P.L. fco.plj at gmail.com
Tue Mar 13 09:33:00 UTC 2012


Public bug reported:

Release of Ubuntu: precise
Package Version: 2.11.4ubuntu1
Expected Results: edit-patch should run a subshell to introduce changes
Actual Results: edit-patch fail with the following message:

$ edit-patch.sh  99-new-fix
Normalizing patch path to  99-new-fix
Normalizing patch name to 99-new-fix.patch
grep: debian/patches/99-new-fix.patch: No such file or directory
head: cannot open `debian/patches/99-new-fix.patch' for reading: No such file or directory
sed: can't read debian/patches/99-new-fix.patch: No such file or directory

This happen because at the line ~193:

    if [ "$(basename $0)" = "edit-patch" ]; then
        edit_patch_$PATCHSYSTEM $PATCHNAME
    elif [ "$(basename $0)" = "add-patch" ]; then
        add_patch_$PATCHSYSTEM $1 $PATCHNAME

Compares against "edit-patch" instead of "edit-patch.sh"

** Affects: devscripts (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bitesize precise

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

Title:
  edit-patch.sh looks for edit-patch which make it fail to run a
  subshell

Status in “devscripts” package in Ubuntu:
  New

Bug description:
  Release of Ubuntu: precise
  Package Version: 2.11.4ubuntu1
  Expected Results: edit-patch should run a subshell to introduce changes
  Actual Results: edit-patch fail with the following message:

  $ edit-patch.sh  99-new-fix
  Normalizing patch path to  99-new-fix
  Normalizing patch name to 99-new-fix.patch
  grep: debian/patches/99-new-fix.patch: No such file or directory
  head: cannot open `debian/patches/99-new-fix.patch' for reading: No such file or directory
  sed: can't read debian/patches/99-new-fix.patch: No such file or directory

  This happen because at the line ~193:

      if [ "$(basename $0)" = "edit-patch" ]; then
          edit_patch_$PATCHSYSTEM $PATCHNAME
      elif [ "$(basename $0)" = "add-patch" ]; then
          add_patch_$PATCHSYSTEM $1 $PATCHNAME

  Compares against "edit-patch" instead of "edit-patch.sh"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/devscripts/+bug/953857/+subscriptions




More information about the foundations-bugs mailing list