PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/pkg/deb.py |
""" Common functions for working with deb packages """ def combine_comments(comments): """ Given a list of comments, or a comment submitted as a string, return a single line of text containing all of the comments. """ if isinstance(comments, list): comments = [c if isinstance(c, str) else str(c) for c in comments] else: if not isinstance(comments, str): comments = [str(comments)] else: comments = [comments] return " ".join(comments).strip() def strip_uri(repo): """ Remove the trailing slash from the URI in a repo definition """ splits = repo.split() for idx, val in enumerate(splits): if any(val.startswith(x) for x in ("http://", "https://", "ftp://")): splits[idx] = val.rstrip("/") return " ".join(splits)