Hi, On Wed, 2008-01-02 at 14:44 -0500, Andres Mejia wrote: > Please allow support for mangling the orig tarball version from the > upstream version. This patch would add support for the option > origversionmangle in a watch file. This patch updates the manpage as > well.
Thanks for the patch. However... apologies if I'm missing something, but what does the new option provide that can't already be handled by existing options? To take the example from your patch of ogre-linux_osx, the following watch file will produce ogre-linux_osx-v1-4-7.tar.bz2 with ogre-linux_osx_1.4.7.orig.tar.bz2 as a symlink to it; as far as I can see, that's also what your patch would have produced. version=3 opts=versionmangle=s/-/./g \ http://downloads.sourceforge.net/ogre/ogre-linux_osx-v(.*?)\.tar\.bz2.* 1-4-5 If you wanted both tarballs renaming, that's also possible, just not as pretty :-) To produce ogre-linux_osx-v1.4.7.tar.bz2 and ogre-linux_osx_1.4.7.orig.tar.bz2: version=3 opts="versionmangle=s/-/./g,\ filenamemangle=s/-/./g;s/(ogre)\./$1-/;s/^.*(ogre-.*?)\?.*$/$1/" \ http://downloads.sourceforge.net/ogre/ogre-linux_osx-v(.*?)\.tar\.bz2.* 1-4-5 (The last expression being to handle the - in the package name). You can even have the .orig named ogre-linux_osx_v1.4.7.orig.tar.bz2 by: opts="versionmangle=s/-/./g,\ filenamemangle=s/-/./g;s/(ogre)\./$1-/;s/^.*(ogre-.*?)\?.*$/$1/" \ http://downloads.sourceforge.net/ogre/ogre-linux_osx-(v.*?)\.tar\.bz2.* v1-4-5 Regards, Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

