[opensuse-buildservice] Question about automatic delete
Hello Mates, i've written an Script, that copies the Files from my home:saigkill to openSUSE:Factory:Contrib %Paketname (in my local working copy). So i can make changes in my home Repo and the Results are copied to the right Place in my osc Folder. So i can go to the Contrib Folders and can make an checkin. Problem: Some of my Packages has %debug_package in the Specfile. If i make an commit to Contrib, he gives me an error. All Packages in Contrib has per default enabled the %debug_package Macro. So is needed to delete the Macro by copying to local Contrib. Is it possible to make this change in my Script? Is it possible to make osc ci after Copying automaticly? Have an nice Day. My script is added as Attachment. -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill
On 2009-02-06 12:54:37 +0100, Sascha 'saigkill' Manns wrote:
Problem: Some of my Packages has %debug_package in the Specfile. If i make an commit to Contrib, he gives me an error. All Packages in Contrib has per default enabled the %debug_package Macro. So is needed to delete the Macro by copying to local Contrib. A pragmatic approach would be to simple remove the %debug_info flag from all your packages and just enable the debuginfo generation in the project/package meta. Alternatively you can add something to your script which simply removes the %debug_package line after copying...
Is it possible to make this change in my Script? Is it possible to make osc ci after Copying automaticly?
Of course - simply add it to your script:) Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Freitag 06 Februar 2009 13:12:04 Marcus Hüwe wrote:
On 2009-02-06 12:54:37 +0100, Sascha 'saigkill' Manns wrote:
Problem: Some of my Packages has %debug_package in the Specfile. If i make an commit to Contrib, he gives me an error. All Packages in Contrib has per default enabled the %debug_package Macro. So is needed to delete the Macro by copying to local Contrib.
A pragmatic approach would be to simple remove the %debug_info flag from all your packages and just enable the debuginfo generation in the project/package meta. Alternatively you can add something to your script which simply removes the %debug_package line after copying... I think i add the following: grep "%debug_package" kde4-skrooge.spec. And then? Which command deletes the Line?
-- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2/6/2009 at 1:51 PM, "Sascha 'saigkill' Manns" <samannsml@directbox.com> wrote: On Freitag 06 Februar 2009 13:12:04 Marcus Hüwe wrote: On 2009-02-06 12:54:37 +0100, Sascha 'saigkill' Manns wrote: Problem: Some of my Packages has %debug_package in the Specfile. If i make an commit to Contrib, he gives me an error. All Packages in Contrib has per default enabled the %debug_package Macro. So is needed to delete the Macro by copying to local Contrib.
A pragmatic approach would be to simple remove the %debug_info flag from all your packages and just enable the debuginfo generation in the project/package meta. Alternatively you can add something to your script which simply removes the %debug_package line after copying... I think i add the following: grep "%debug_package" kde4-skrooge.spec. And then? Which command deletes the Line?
You probably look at something like: sed -i -e /%debug_package/d specfile.spec This will delete the line from your spec files. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Freitag 06 Februar 2009 14:03:09 Dominique Leuenberger wrote:
On 2/6/2009 at 1:51 PM, "Sascha 'saigkill' Manns" <samannsml@directbox.com>
wrote:
On Freitag 06 Februar 2009 13:12:04 Marcus Hüwe wrote:
On 2009-02-06 12:54:37 +0100, Sascha 'saigkill' Manns wrote:
Problem: Some of my Packages has %debug_package in the Specfile. If i make an commit to Contrib, he gives me an error. All Packages in Contrib has per default enabled the %debug_package Macro. So is needed to delete the Macro by copying to local Contrib.
A pragmatic approach would be to simple remove the %debug_info flag from all your packages and just enable the debuginfo generation in the project/package meta. Alternatively you can add something to your script which simply removes the %debug_package line after copying...
I think i add the following: grep "%debug_package" kde4-skrooge.spec. And then? Which command deletes the Line?
You probably look at something like:
sed -i -e /%debug_package/d specfile.spec Thank you very much. That's was i'm seraching for :-)
-- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Dominique Leuenberger
-
Marcus Hüwe
-
Sascha 'saigkill' Manns