public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-86-g6898782
@ 2024-04-10 16:42 Jon Turney
  0 siblings, 0 replies; only message in thread
From: Jon Turney @ 2024-04-10 16:42 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=68987828c59521bb8bf632e80b38101144ca3b32

commit 68987828c59521bb8bf632e80b38101144ca3b32
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Tue Apr 9 23:35:06 2024 +0100

    Fix a bug in 'remove obsoleting package from depends of package it obsoletes'
    
    Fix a bug in 'remove obsoleting package from depends of package it
    obsoletes' code.  This wasn't applying correctly if the dependency
    wasn't the first one, and left extraneous whitespace when it was.


Diff:
---
 calm/package.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/calm/package.py b/calm/package.py
index 5414053..efc01c4 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -802,10 +802,10 @@ def validate_packages(args, packages, valid_provides_extra=None, missing_obsolet
 
                         for (ov, ohints) in packages[o].version_hints.items():
                             if 'depends' in ohints:
-                                depends = ohints['depends'].split(',')
+                                depends = ohints['depends'].split(', ')
                                 if p in depends:
                                     depends = [d for d in depends if d != p]
-                                    packages[o].version_hints[ov]['depends'] = ','.join(depends)
+                                    packages[o].version_hints[ov]['depends'] = ', '.join(depends)
                                     logging.debug("removed obsoleting '%s' from the depends: of package '%s'" % (p, o))
                     else:
                         logging.debug("can't ensure package '%s' doesn't depends: on obsoleting '%s'" % (o, p))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-10 16:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 16:42 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-86-g6898782 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).