Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
------------------------------------------------- b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete =================================================================
I first try to delete the build from tms2.0 tag by following cmd:
---------------- # koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
Any help i'll appreciate !
Thanks,
On Fri, Jun 19, 2009 at 5:54 AM, Jian Leelijian.gnu@gmail.com wrote:
Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete
I first try to delete the build from tms2.0 tag by following cmd:
# koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Jian,
You can untag a build from tag. i.e
koji untag-pkg tms2.0 b43-fwcutter-011-5
and then your command may work. Steve
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
Any help i'll appreciate !
Thanks,
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
I've use you command, it's ok:
------------------------------------------ [root@build ~]# koji untag-pkg tms2.0 system-config-language-1.3.2-6.1.moblin2 [root@build ~]# koji call deleteBuild system-config-language-1.3.2-6.1.moblin2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 11, 'name': 'moblin2-devel'}] [root@build ~]# koji untag-pkg moblin2-devel system-config-language-1.3.2-6.1.moblin2 [root@build ~]# koji call deleteBuild system-config-language-1.3.2-6.1.moblin2 tms2.0 True ==================================================
And the pkgs remove also :
----------------------- [root@build ~]# ll /data/koji/packages/system-config-language/1.3.2/ total 8 drwxr-xr-x 5 apache apache 4096 Jun 9 17:15 6.1.tms2 ============================================================
I'll try other peope's ideal,
Thanks,
Steve Traylen steve@traylen.net writes:
On Fri, Jun 19, 2009 at 5:54 AM, Jian Leelijian.gnu@gmail.com wrote:
Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete
I first try to delete the build from tms2.0 tag by following cmd:
# koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Jian,
You can untag a build from tag. i.e
koji untag-pkg tms2.0 b43-fwcutter-011-5
and then your command may work. Steve
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
Any help i'll appreciate !
Thanks,
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
Hi,
On Thu, 2009-06-18 at 20:54 -0700, Jian Lee wrote:
Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete
I first try to delete the build from tms2.0 tag by following cmd:
# koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
deleteBuild will still keep some data in the database. If the reason for deleting the build is so that you can build/import it again, then try using "resetBuild". It will remove all the files and rpm data and mark the build as "cancelled".
(Although a quick looks suggests that it removes entries from buildroot too. So, use with care)
Do correct me if I am wrong.
Regards, Jitesh
Jitesh Shah wrote:
Hi,
On Thu, 2009-06-18 at 20:54 -0700, Jian Lee wrote:
Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete
I first try to delete the build from tms2.0 tag by following cmd:
# koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
deleteBuild will still keep some data in the database. If the reason for deleting the build is so that you can build/import it again, then try using "resetBuild". It will remove all the files and rpm data and mark the build as "cancelled".
(Although a quick looks suggests that it removes entries from buildroot too. So, use with care)
Do correct me if I am wrong.
You're correct, resetBuild is a *very* big hammer, only to be used in exceptional circumstances (I can probably count the number of times I've used it on one hand). deleteBuild is also only meant for use by the koji-gc script, and should really never be called manually. That's why neither of these methods are exposed via the koji cmd-line. If you're going to use them, think very hard about what you're doing, why you're doing it, and proceed with caution.
Mike Bonnet mikeb@redhat.com writes:
Thanks for all of your help !
I'll try it monday , recently I'll working on merge new moblin development env to our old moblin development env, use the koji is very efficiency.
Jitesh Shah wrote:
Hi,
On Thu, 2009-06-18 at 20:54 -0700, Jian Lee wrote:
Hello, everyone
I want to delete a build from a tag, How should I do ?
example, the tag tms2.0 have following build:
b43-fwcutter-011-5.tms2 michaelw 2009-06-19 09:52:18 complete
I first try to delete the build from tms2.0 tag by following cmd:
# koji call deleteBuild b43-fwcutter-011-5.tms2 tms2.0 GenericError: Cannot delete build, tagged: [{'id': 10, 'name': 'tms2.0'}] ==================================================
Did a use a wrong api ? or did I can delete a build from a tag use kojihub api ? Must to direct do on postgresql ?
deleteBuild will still keep some data in the database. If the reason for deleting the build is so that you can build/import it again, then try using "resetBuild". It will remove all the files and rpm data and mark the build as "cancelled".
(Although a quick looks suggests that it removes entries from buildroot too. So, use with care)
Do correct me if I am wrong.
You're correct, resetBuild is a *very* big hammer, only to be used in exceptional circumstances (I can probably count the number of times I've used it on one hand). deleteBuild is also only meant for use by the koji-gc script, and should really never be called manually. That's why neither of these methods are exposed via the koji cmd-line. If you're going to use them, think very hard about what you're doing, why you're doing it, and proceed with caution.
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
buildsys@lists.fedoraproject.org