Bug 25707 - inheritance check should not be performed on p6<->t6 copying
Summary: inheritance check should not be performed on p6<->t6 copying
Status: CLOSED FIXED
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: git.altlinux.org (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: Dmitry V. Levin
QA Contact: Mikhail Gusarov
URL: http://git.altlinux.org/people/viy/pa...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 16:00 MSK by viy
Modified: 2011-11-22 02:40 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2011-06-02 16:00:49 MSK
Не получилось скопировать из p6 в t6 более новое ядро std-def,
из-за inheritance check, который явно не к месту при копировании p6->t6
(и наоборот)
пример хака, отключающего копирование, в коммите в ссылке.
2011-Jun-02 14:58:33 :: error: /gears/k/kernel-modules-rtl8168-std-def.git branch `p6' is not inherited from branch `t6'
2011-Jun-02 14:58:34 :: gears inheritance check FAILED
2011-Jun-02 14:58:34 :: task #46827 for t6 FAILED
--- a/gb-task-check-girar
+++ b/gb-task-check-girar
@@ -50,6 +50,8 @@ girar_check_copy()
 {
        local copy_repo copy_commit_id
        copy_repo="$(cat gears/$i/copy_repo)"
+       # allow copying from p6 to t6 w/o inheritance check
+       [ "$copy_repo$GB_REPO_NAME" = "p6t6" ] && return 0
        if ! copy_commit_id="$(git rev-parse --verify "heads/$copy_repo^{commit}" 2>/dev/null)"; then
                fail "$GIT_DIR already contains \`$GB_REPO_NAME' branch, but does not contain \`$copy_repo' branch"
                return

http://git.altlinux.org/people/viy/packages/?p=girar-builder.git;a=commit;h=493b19f5fd240eb110850a367047608cfd1eb4ee
Comment 1 Dmitry V. Levin 2011-11-22 02:40:22 MSK
Уже давно проверки gb-task-check-girar и gb-task-check-lastchange в p6 и t6 не вполне обязательные.