[arch-dev-public] Who broke devtools? - extrapkg svn commit == fail

Thomas Bächler thomas at archlinux.org
Tue Sep 22 05:20:06 EDT 2009


So, please have a look at the second block:

if [ "$1" != "" ]; then
     svn commit -m "upgpkg: $pkgbase $pkgver-$pkgrel
     $1" > /dev/null
     if [ $? -ne 0 ]; then
         echo "Cancelled"
         exit 1
     fi
     echo "===> Commited with \"upgpkg: $pkgbase $pkgver-$pkgrel
     $1\" message"
else
     svn commit >/dev/null
     if [ $? -ne 0 ]; then
         echo "Cancelled"
         exit 1
     fi
     echo "===> Commited with \"upgpkg: $pkgbase $pkgver-$pkgrel\" message"
fi

1) Redirecting the commit command to /dev/null if an editor is going to 
be called is fail. extrapkg was hanging indefinitely and I was really 
wondering why.
2) The above is easy to fix, however, the "Commited with ..." message is 
incorrect. Furthermore, we should still include "upgpkg: ..." in the 
default commit message, that is missing in the second code path.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20090922/5a882407/attachment-0001.bin>


More information about the arch-dev-public mailing list