aboutsummaryrefslogtreecommitdiff
path: root/tvloader/parser2v2/parse_other_license.go
diff options
context:
space:
mode:
authorBrandon Lum <lumjjb@gmail.com>2022-07-19 16:43:48 -0400
committerBrandon Lum <lumjjb@gmail.com>2022-07-19 22:43:24 -0400
commit9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1 (patch)
treea43213aadfb9bde3d9ec15634a39305f19ff38b2 /tvloader/parser2v2/parse_other_license.go
parent41d2272711255f5a25e16e3507ec3318bc550189 (diff)
downloadspdx-tools-9ae1bd2f8e0dabb0845f1225b54f23e8f3a429f1.tar.gz
replace all v2_1, v2_2 with new convention
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
Diffstat (limited to 'tvloader/parser2v2/parse_other_license.go')
-rw-r--r--tvloader/parser2v2/parse_other_license.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tvloader/parser2v2/parse_other_license.go b/tvloader/parser2v2/parse_other_license.go
index 371f834..95250a6 100644
--- a/tvloader/parser2v2/parse_other_license.go
+++ b/tvloader/parser2v2/parse_other_license.go
@@ -5,14 +5,14 @@ package parser2v2
import (
"fmt"
- "github.com/spdx/tools-golang/spdx"
+ "github.com/spdx/tools-golang/spdx/v2_2"
)
func (parser *tvParser2_2) parsePairFromOtherLicense2_2(tag string, value string) error {
switch tag {
// tag for creating new other license section
case "LicenseID":
- parser.otherLic = &spdx.OtherLicense2_2{}
+ parser.otherLic = &v2_2.OtherLicense{}
parser.doc.OtherLicenses = append(parser.doc.OtherLicenses, parser.otherLic)
parser.otherLic.LicenseIdentifier = value
case "ExtractedText":
@@ -25,14 +25,14 @@ func (parser *tvParser2_2) parsePairFromOtherLicense2_2(tag string, value string
parser.otherLic.LicenseComment = value
// for relationship tags, pass along but don't change state
case "Relationship":
- parser.rln = &spdx.Relationship2_2{}
+ parser.rln = &v2_2.Relationship{}
parser.doc.Relationships = append(parser.doc.Relationships, parser.rln)
return parser.parsePairForRelationship2_2(tag, value)
case "RelationshipComment":
return parser.parsePairForRelationship2_2(tag, value)
// for annotation tags, pass along but don't change state
case "Annotator":
- parser.ann = &spdx.Annotation2_2{}
+ parser.ann = &v2_2.Annotation{}
parser.doc.Annotations = append(parser.doc.Annotations, parser.ann)
return parser.parsePairForAnnotation2_2(tag, value)
case "AnnotationDate":