Skip to content

Commit 04d5c8b

Browse files
authored
Merge pull request #101 from fosslight/develop
Add the additional infor for Nuget
2 parents 854207e + 4a1b625 commit 04d5c8b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Because we utilizes the different open source software to analyze the dependenci
4747
| [Swift](https://swift.org/package-manager/) (Swift) | No, it can't. |
4848
| [Carthage](https://github.com/Carthage/Carthage) (Swift/Obj-C) | Yes, if the following conditions are met. <br /> - installed the packages of the project (in other words, downloadeded the sources in 'Carthgae/Checkouts' directory). |
4949
| [Go](https://pkg.go.dev/) (Go) | No, it can't. |
50+
| [Nuget](https://www.nuget.org/) (.NET) | No, it can't. |
5051

5152

5253
## 👏 Contributing Guide

src/fosslight_dependency/_help.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
Swift (Swift)
2222
Carthage (Swift/Obj-C)
2323
Go (Go)
24+
Nuget (.NET)
2425
2526
Options:
2627
Optional
2728
-h\t\t\t\t Print help message.
2829
-v\t\t\t\t Print the version of the script.
2930
-m <package_manager>\t Enter the package manager.
30-
\t(npm, maven, gradle, pip, pub, cocoapods, android, swift, carthage, go)
31+
\t(npm, maven, gradle, pip, pub, cocoapods, android, swift, carthage, go, nuget)
3132
-p <input_path>\t\t Enter the path where the script will be run.
3233
-o <output_path>\t\t Output path
3334
\t\t\t\t\t(If you want to generate the specific file name, add the output path with file name.)

src/fosslight_dependency/package_manager/Nuget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def parse_oss_information(self, f_name):
9090
proj_url_id = nupkg_metadata.find(f'{xmlns}projectUrl')
9191
if proj_url_id is not None:
9292
dn_loc = proj_url_id.text
93-
homepage = f'{self.dn_url}{oss_origin_name}/{oss_version}'
93+
homepage = f'{self.dn_url}{oss_origin_name}'
9494
if dn_loc == '':
95-
dn_loc = homepage
95+
dn_loc = f'{homepage}/{oss_version}'
9696
else:
9797
if dn_loc.endswith('.git'):
9898
dn_loc = dn_loc[:-4]

0 commit comments

Comments
 (0)