#514 New layout for retired packages
Merged by onosek. Opened by onosek.
onosek/rpkg layout_for_retired  into  master

Download 514.patch

Fixes fail during execution operation over the already retired package or module.
Test is_retired is run in the beginning, but the method was not reachable when the package was already retired - no layout was selected in this case and it left self.layout unset. A new layout was created.

Also modifies related tests. When a package is retired, a directory contains only a marker and other tracked files are removed from git. There should not be any difference between retired DistGit or SRPM layouts.

JIRA: RHELCMP-1967
Resolves: rhbz#1867822

Signed-off-by: Ondrej Nosek onosek@redhat.com

rebased onto 22120527228908581c2fdecac48982efba7c74b2

@lrossett your review could be valuable as you are the author of the original code.

This comment seems wrong, there's an exception if there is no marker file. But it seems to be the case for all layouts, and it's not a big deal.

Looks good to me.

rebased onto 9c1b7568336c13177ab479e8d684df4ffac335a1

Pull-Request has been merged by onosek

Metadata