In fedpkg, load_rpmdefines does not set self._disttag, not like what pyrpkg does. This causes disttag cannot return a correct value, and any method using disttag in pyrpkg does not work in fedpkg.
Signed-off-by: Chenxiong Qi cqi@redhat.com
Do you have any specific example of what does not work without this patch?
One example is in my local development branch I haven't made a PR for it so far. It uses self.disttag. Without this patch, self.disttag will always return None. I'll make a PR for that change later.
self.disttag
None
Anyway, load_rpmdefines should not change Commands.dist, which is not used for dist macro. Instead, Commands.dist should be changed by option --release or the deprecated --dist.
load_rpmdefines
Commands.dist
dist
--release
--dist
It looks good to me. I was just curious how come this has not caused any problems so far.
rebased
Looks good to me.
Pull-Request has been merged by cqi
In fedpkg, load_rpmdefines does not set self._disttag, not like what
pyrpkg does. This causes disttag cannot return a correct value, and any
method using disttag in pyrpkg does not work in fedpkg.
Signed-off-by: Chenxiong Qi cqi@redhat.com