Skip to content

Commit 8d823c6

Browse files
committed
#56 - Update link references of ownership from nexB to aboutcode-org
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 8516182 commit 8d823c6

20 files changed

+261
-176
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
v33.0.1
5+
--------
6+
7+
This is a minor release with reference link updated.
8+
9+
- Update link references of ownership from nexB to aboutcode-org
10+
411
v33.0.0
512
--------
613

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others.
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# Visit https://aboutcode.org and https://github.com/nexB/container-inspector
5+
# Visit https://aboutcode.org and https://github.com/aboutcode-org/container-inspector
66
# for support and download.
77
# ScanCode is a trademark of nexB Inc.
88
#

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (c) nexB Inc. and others. All rights reserved.
44
# SPDX-License-Identifier: Apache-2.0
55
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6-
# See https://github.com/nexB/ for support or download.
6+
# See https://github.com/aboutcode-org/ for support or download.
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

configure.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@rem Copyright (c) nexB Inc. and others. All rights reserved.
55
@rem SPDX-License-Identifier: Apache-2.0
66
@rem See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
7-
@rem See https://github.com/nexB/ for support or download.
7+
@rem See https://github.com/aboutcode-org/ for support or download.
88
@rem See https://aboutcode.org for more information about nexB OSS projects.
99

1010

container-inspector.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: container-inspector
33
owner: nexB Inc.
44
home_url: http://nexb.com
55
vcs_tool: git
6-
vcs_repository: https://github.com/nexB/container_inspector.git
6+
vcs_repository: https://github.com/aboutcode-org/container_inspector.git
77
description: Docker utilities
88
license: apache-2.0
99
license_text_file: apache-2.0.LICENSE

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = Apache-2.0
66
description = Docker, containers, rootfs and virtual machine related software composition analysis (SCA) utilities.
77
long_description = file:README.rst
88
long_description_content_type = text/x-rst
9-
url = https://github.com/nexB/container-inspector
9+
url = https://github.com/aboutcode-org/container-inspector
1010

1111
author = nexB. Inc. and others
1212
author_email = [email protected]

src/container_inspector/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5-
# See https://github.com/nexB/container-inspector for support or download.
5+
# See https://github.com/aboutcode-org/container-inspector for support or download.
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

@@ -21,4 +21,3 @@ def is_image_or_layer_id(s):
2121
Return True if the string `s` looks like a layer ID e.g. a SHA256-like id.
2222
"""
2323
return re(r'^[a-f0-9]{64}$', re.IGNORECASE).match(s)
24-

src/container_inspector/cli.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5-
# See https://github.com/nexB/container-inspector for support or download.
5+
# See https://github.com/aboutcode-org/container-inspector for support or download.
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

@@ -68,7 +68,8 @@ def _container_inspector_dockerfile(directory, json=False, csv=False):
6868
if not dockerfiles:
6969
return
7070
if json:
71-
click.echo(json_module.dumps([df for _loc, df in dockerfiles.items()], indent=2))
71+
click.echo(json_module.dumps(
72+
[df for _loc, df in dockerfiles.items()], indent=2))
7273

7374
if csv:
7475
dockerfiles = list(dockerfile.flatten_dockerfiles(dockerfiles))
@@ -100,7 +101,8 @@ def _container_inspector(image_path, extract_to=None, csv=False, _layer_path_seg
100101
as_json = not csv
101102

102103
if as_json:
103-
images = [i.to_dict(layer_path_segments=_layer_path_segments) for i in images]
104+
images = [i.to_dict(layer_path_segments=_layer_path_segments)
105+
for i in images]
104106
return json_module.dumps(images, indent=2)
105107
else:
106108
from io import StringIO

src/container_inspector/distro.py

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5-
# See https://github.com/nexB/container-inspector for support or download.
5+
# See https://github.com/aboutcode-org/container-inspector for support or download.
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

@@ -296,7 +296,9 @@ def from_os_release_file(cls, location):
296296
parsed
297297
"""
298298
if not location or not os.path.exists(location):
299-
if TRACE: logger.debug(f'from_os_release_file: {location!r} does not exists')
299+
if TRACE:
300+
logger.debug(
301+
f'from_os_release_file: {location!r} does not exists')
300302
return
301303

302304
data = parse_os_release(location) or {}
@@ -333,7 +335,8 @@ def from_os_release_file(cls, location):
333335
if data:
334336
new_data['extra_data'] = data
335337

336-
if TRACE: logger.debug(f'from_os_release_file: new_data: {new_data!r}')
338+
if TRACE:
339+
logger.debug(f'from_os_release_file: new_data: {new_data!r}')
337340

338341
return cls(**new_data)
339342

@@ -356,10 +359,13 @@ def from_rootfs(cls, location, base_distro=None):
356359
manifest) and may be missing from the rootfs proper (for instance of an
357360
/etc/os-release is missing in the rootfs for a Linux-based image).
358361
"""
359-
if TRACE: logger.debug(f'from_rootfs: {location!r} base_distro: {base_distro!r}')
362+
if TRACE:
363+
logger.debug(
364+
f'from_rootfs: {location!r} base_distro: {base_distro!r}')
360365

361366
if not location or not os.path.exists(location):
362-
if TRACE: logger.debug(f'from_rootfs: {location!r} does not exists')
367+
if TRACE:
368+
logger.debug(f'from_rootfs: {location!r} does not exists')
363369
return
364370

365371
finders = {
@@ -369,10 +375,12 @@ def from_rootfs(cls, location, base_distro=None):
369375
}
370376

371377
for finder_os, finder in finders.items():
372-
if TRACE: logger.debug(f'from_rootfs: trying finder_os: {finder_os!r}')
378+
if TRACE:
379+
logger.debug(f'from_rootfs: trying finder_os: {finder_os!r}')
373380

374381
found = finder(location)
375-
if TRACE: logger.debug(f'from_rootfs: trying found: {found!r}')
382+
if TRACE:
383+
logger.debug(f'from_rootfs: trying found: {found!r}')
376384
if found:
377385
if base_distro:
378386
if base_distro.os != finder_os:
@@ -382,11 +390,15 @@ def from_rootfs(cls, location, base_distro=None):
382390
)
383391

384392
merged = base_distro.merge(found)
385-
if TRACE: logger.debug(f'from_rootfs: returning merged: {merged!r}')
393+
if TRACE:
394+
logger.debug(
395+
f'from_rootfs: returning merged: {merged!r}')
386396
return merged
387397

388398
else:
389-
if TRACE: logger.debug(f'from_rootfs: returning found: {found!r}')
399+
if TRACE:
400+
logger.debug(
401+
f'from_rootfs: returning found: {found!r}')
390402
return found
391403

392404
@classmethod
@@ -431,8 +443,10 @@ def categories(self):
431443
"""
432444
return dict(
433445
rpm=dict(
434-
redhat=('fedora', 'centos', 'rhel', 'amazon', 'scientific', 'oraclelinux',),
435-
suse=('opensuse', 'suse', 'sles', 'sled', 'sles_sap', 'opensuse-leap', 'opensuse-tumbleweed',),
446+
redhat=('fedora', 'centos', 'rhel', 'amazon',
447+
'scientific', 'oraclelinux',),
448+
suse=('opensuse', 'suse', 'sles', 'sled', 'sles_sap',
449+
'opensuse-leap', 'opensuse-tumbleweed',),
436450
altlinux=('altlinux',),
437451
photon=('photon',),
438452
mandriva=('mandriva', 'mageia', 'mandrake', 'open-mandriva'),
@@ -456,7 +470,8 @@ def merge(self, other_distro):
456470
Return a new distro based on this Distro data updated with non-empty
457471
values from the ``other_distro`` Distro object.
458472
"""
459-
if TRACE: logger.debug(f'merge: {self!r} with: {other_distro!r}')
473+
if TRACE:
474+
logger.debug(f'merge: {self!r} with: {other_distro!r}')
460475

461476
existing = self.to_dict()
462477
if other_distro:
@@ -465,9 +480,11 @@ def merge(self, other_distro):
465480
if v
466481
}
467482
existing.update(other_non_empty)
468-
if TRACE: logger.debug(f'merge: updated data: {existing!r}')
483+
if TRACE:
484+
logger.debug(f'merge: updated data: {existing!r}')
469485

470-
if TRACE: logger.debug(f'merge: merged data: {existing!r}')
486+
if TRACE:
487+
logger.debug(f'merge: merged data: {existing!r}')
471488

472489
return type(self)(**existing)
473490

src/container_inspector/dockerfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) nexB Inc. and others. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
5-
# See https://github.com/nexB/container-inspector for support or download.
5+
# See https://github.com/aboutcode-org/container-inspector for support or download.
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

0 commit comments

Comments
 (0)