public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* calm: mksetupini doesn't allow non-empty source but empty install files for an obsolete package
@ 2017-05-23 13:44 Ken Brown
  2017-05-23 16:55 ` Jon Turney
  0 siblings, 1 reply; 6+ messages in thread
From: Ken Brown @ 2017-05-23 13:44 UTC (permalink / raw)
  To: cygwin-apps

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 tarfiles
mksetupini: 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:
                 continue

+            if '_obsolete' in packages[p].vermap[v].get('category', ''):
+                continue
+
             if not packages[p].tars[packages[p].vermap[v]['source']].is_used:
                 logging.error("package '%s' version '%s' source has no non-empty install tarfiles" % (p, v))
                 error = True


But I must have something wrong, because I still get the error after this change.

Ken

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-04 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 13:44 calm: mksetupini doesn't allow non-empty source but empty install files for an obsolete package Ken Brown
2017-05-23 16:55 ` Jon Turney
2017-05-23 18:16   ` Ken Brown
2017-05-25 22:11     ` Jon Turney
2017-06-04 18:41       ` Ken Brown
2017-06-04 18:54         ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).