Skip to content

Commit

Permalink
Python: change CmsisPackRef to format as pack file names. (#182)
Browse files Browse the repository at this point in the history
Use dots to separate pack reference components rather than "::".
  • Loading branch information
flit authored Oct 17, 2021
1 parent f59f19c commit 118925f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmsis_pack_manager/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 118925f

Please sign in to comment.