This is the mail archive of the cygwin-apps mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 5/23/2017 12:55 PM, Jon Turney wrote:
On 23/05/2017 14:44, Ken Brown wrote:I've created an obsolete package (as discussed starting at https://sourceware.org/ml/cygwin-apps/2017-05/msg00084.html). But mksetupini doesn't like it:mksetupini: package 'texlive-collection-htmlxml' version '20170520-1' source has no non-empty install tarfilesmksetupini: package set has errors, not writing setup.ini I thought the following would fix it: --- a/calm/package.py +++ b/calm/package.py @@ -636,6 +636,9 @@ def validate_packages(args, packages):if packages[p].tars[packages[p].vermap[v]['source']].is_empty:continueThis should be being caught by this case (source is empty), but it isn't, I guess because it's got a .keep file due to other problems previously discussed.
The source contains a .cygport file and a fake upstream source tarball.
+ if '_obsolete' in packages[p].vermap[v].get('category', ''): + continueI think this maybe needs to be packages[p].version_hints[v].get('category', '') ?
Yes, that fixes it, thanks. Patch attached. Ken
Attachment:
0001-Allow-an-obsolete-package-with-source-to-have-empty-.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |