Skip to content

Different behavior between apply and commit (in terms of return code) #74

@asarubbo

Description

@asarubbo

Suppose we run nattka on something that was already done/handled:

At the time of writing, arm64 was done in bug 869125:

apply:

 ~ $ nattka apply -a arm64 869125 ; echo $?
0

commit:

 ~ $ nattka commit -a arm64 869125 ; echo $?
ERROR:nattka:Bug 869125: no packages match requested arch
1

resolve:

 ~ $ nattka resolve -a arm64 869125 ; echo $?
WARNING:nattka:Bug 869125: no specified arches CC-ed, found: ppc ppc64
0

To have the same behavior everywhere, commit should return 0, or apply and resolve should return 1

Since the workflow is apply -> commit -> resolve, another solution can be implement something on apply (like pretend?) that inform in whatever way if you are doing something doable or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions