|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
cqi commented 7 years ago | ||
cqi commented 7 years ago Why only get the first two characters from | ||
|
||
|
||
|
||
|
||
|
||
|
||
fedpkg knows few branches epel, fedora etc.
However in dist-git there can be more branches.
For example in Copr we plan to have custom branches, Mageia etc.
Since fedpkg is in Copr used only for generating srpm, it is
better to create some disttag rather then raising error.
Other values are not used at all.
This RE will work for most values of dist-git branches.
And it is better than hardcoding new value every time we add new chroot
and dist-git branch.
self._disttag
should be set. If setself.dist
directly,self.disttag
will returnNone
always. Others were fixed already in 3c0c248.