Bug 25707

Summary: inheritance check should not be performed on p6<->t6 copying
Product: Infrastructure Reporter: viy <viy>
Component: git.altlinux.orgAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: Mikhail Gusarov <dottedmag>
Severity: normal    
Priority: P3 CC: enp, mike
Version: unspecified   
Hardware: all   
OS: Linux   
URL: http://git.altlinux.org/people/viy/packages/?p=girar-builder.git;a=commit;h=493b19f5fd240eb110850a367047608cfd1eb4ee

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 не вполне обязательные.