![](https://seccdn.libravatar.org/avatar/e1ad78837291ae9e0ef67a01d37bec8d.jpg?s=120&d=mm&r=g)
On Tue, 19 Oct 2010 16:49:42 -0500, "David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:
While we're on the topic, why does suse still use PreReq in packaging?
I don't know. Maybe Darix (CCed, that's why I quoted in full) knows the answer to that?
yum/creatrepo upstream guys had to create a patch to make createrepo 0.9.8 work with my suse repos. Without it, the following errors were received on metadata update:
<snip> AttributeError: 'module' object has no attribute 'RPMSENSE_PREREQ'
The patch required was:
--- yum/packages.py.orig +++ yum/packages.py @@ -1353,11 +1353,14 @@ is a pre-requires or a not""" # FIXME this should probably be put in rpmUtils.miscutils since # - that's what it is + RPMSENSE_PREREQ = (1 << 6) + RPMSENSE_SCRIPT_PRE = (1 << 9) + RPMSENSE_SCRIPT_POST = (1 << 10) if flag is not None: # Note: RPMSENSE_PREREQ == 0 since rpm-4.4'ish - if flag & (rpm.RPMSENSE_PREREQ | - rpm.RPMSENSE_SCRIPT_PRE | - rpm.RPMSENSE_SCRIPT_POST): + if flag & (RPMSENSE_PREREQ | + RPMSENSE_SCRIPT_PRE | + RPMSENSE_SCRIPT_POST): return 1 return 0
Their comments were: "only suse uses PreReq nowadays", so the question is "Why?"
BTW, what do you use createrepo for? Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org