You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when running with DEPTARGET=PREREQS only .info-files with a PREREQS= line are considered when running build_dicts().
I'm not sure if this is intended behaviour, is it?
Reproduction:
on a new SBo repo run "hoorex -d -f". Around 2000 packages are found.
Running "DEPTARGET=PREREQS hoorex -d -f" results in zero packages.
Now add a PREREQS-line to any package and re-run the above command.
This works for me so far, but I didn't test it in depth.
And maybe it is possible to set the repoData filename and PREREQS==True from the config file? So we can have two config files, one with prereqs and one without them. I have to admid, I'm not sure if this would be useful.
Thanks for the tool and enjoy the weekend :)
Dennis
The text was updated successfully, but these errors were encountered:
Yes the intended behaviour is to consider only those .info files which have an entry matching the DEPTARGET's value (or "REQUIRES" if DEPTARGET isn't explicitly set).
To include packages from REQUIRES entries when DEPTARGET is explicitly set (for instance to PREREQS), I include the REQUIRES values in my PREREQS entry e.g.
PREREQS="abc def ghi $REQUIRES"
which means that PREREQS defines the need for packages abc, def and ghi as well as any other packages already specified by the REQUIRES entry.
About the two config files, I already have this same need myself. I started work on it but ran out of steam and then forgot about it. I have a workaround though and that is to keep the config files for the different DEPTARGETs in different places using the -p option to specify a path (for the DEPTARGET=REQUIRES option in my case). The downside of this is that the command itself becomes a bit unwieldy (and also requires remembering the non-default location each time) e.g. first
However since I only use this form via a higher level building/packaging script, it doesn't really concern me.
A maybe better future solution, allowing multiple config files to be kept in the same directory, would be to name them according to their DEPTARGET e.g. repoData.REQUIRES, repoData.PREREQS, repoData.XYZ etc.
To stay with your example, setting PREREQS="abc def ghi $REQUIRES"
would also require PREREQS=""
in packages abc, def and ghi. That's where I got confused, thanks for clarification.
For the config files: yes, that naming scheme looks perfect.
Hi,
when running with DEPTARGET=PREREQS only .info-files with a PREREQS= line are considered when running build_dicts().
I'm not sure if this is intended behaviour, is it?
Reproduction:
on a new SBo repo run "hoorex -d -f". Around 2000 packages are found.
Running "DEPTARGET=PREREQS hoorex -d -f" results in zero packages.
Now add a PREREQS-line to any package and re-run the above command.
Patch:
This works for me so far, but I didn't test it in depth.
And maybe it is possible to set the repoData filename and PREREQS==True from the config file? So we can have two config files, one with prereqs and one without them. I have to admid, I'm not sure if this would be useful.
Thanks for the tool and enjoy the weekend :)
Dennis
The text was updated successfully, but these errors were encountered: