From 118925f9f61d490e28c2bc95bf38100c3f8c648d Mon Sep 17 00:00:00 2001 From: Chris Reed Date: Sun, 17 Oct 2021 13:28:13 -0500 Subject: [PATCH] Python: change CmsisPackRef to format as pack file names. (#182) Use dots to separate pack reference components rather than "::". --- cmsis_pack_manager/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmsis_pack_manager/__init__.py b/cmsis_pack_manager/__init__.py index 861d172aa..5aa03f167 100644 --- a/cmsis_pack_manager/__init__.py +++ b/cmsis_pack_manager/__init__.py @@ -1,5 +1,6 @@ -# ARM Pack Manager +# CMSIS Pack Manager # Copyright (c) 2017-2021 Arm Limited +# Copyright (c) 2021 Chris Reed # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -46,7 +47,7 @@ def get_pack_name(self): return join(self.vendor, self.pack, "{}.pack".format(self.version)) def __str__(self): - return "{}::{}::{}".format(self.vendor, self.pack, self.version) + return f"{self.vendor}.{self.pack}.{self.version}" class Cache (object):