[CT-NG:patch 07/19] Adapt CTPatch function to handle dash in package name
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Sun Apr 11 14:06:00 GMT 2010
Remy, Bart, All,
On Friday 09 April 2010 21:04:26 Remy Bohmer wrote:
> Some packages have a dash ('-') in their package name, other
> packages have a dash in their version number. In order to handle this
> first look for a patch directory split on the last dash, in not found
> check for a patch direcory split on the fist dash.
CT_Patch has to stop being smart. It is failing.
Let's change the API to:
CT_Patch [nochdir] <pkgname> <pkgversion>
And the package dir is constructed with: pkgname-pkgversion
If that is wrong, then the caller is responsible for cd-ing into the proper
directory, and call CT_Patch with 'nochdir'.
I will do that.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list