File tree Expand file tree Collapse file tree 4 files changed +139
-123
lines changed Expand file tree Collapse file tree 4 files changed +139
-123
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ func ConvertToRPCPkgs(pkgs []ftypes.Package) []*common.Package {
31
31
SrcVersion : pkg .SrcVersion ,
32
32
SrcRelease : pkg .SrcRelease ,
33
33
SrcEpoch : int32 (pkg .SrcEpoch ),
34
+ License : pkg .License ,
34
35
})
35
36
}
36
37
return rpcPkgs
@@ -50,6 +51,7 @@ func ConvertFromRPCPkgs(rpcPkgs []*common.Package) []ftypes.Package {
50
51
SrcVersion : pkg .SrcVersion ,
51
52
SrcRelease : pkg .SrcRelease ,
52
53
SrcEpoch : int (pkg .SrcEpoch ),
54
+ License : pkg .License ,
53
55
})
54
56
}
55
57
return pkgs
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func TestConvertToRpcPkgs(t *testing.T) {
40
40
SrcVersion : "1.2.3" ,
41
41
SrcRelease : "1" ,
42
42
SrcEpoch : 2 ,
43
+ License : "MIT" ,
43
44
},
44
45
},
45
46
},
@@ -54,6 +55,7 @@ func TestConvertToRpcPkgs(t *testing.T) {
54
55
SrcVersion : "1.2.3" ,
55
56
SrcRelease : "1" ,
56
57
SrcEpoch : 2 ,
58
+ License : "MIT" ,
57
59
},
58
60
},
59
61
},
@@ -88,6 +90,7 @@ func TestConvertFromRpcPkgs(t *testing.T) {
88
90
SrcVersion : "1.2.3" ,
89
91
SrcRelease : "1" ,
90
92
SrcEpoch : 2 ,
93
+ License : "MIT" ,
91
94
},
92
95
},
93
96
},
@@ -102,6 +105,7 @@ func TestConvertFromRpcPkgs(t *testing.T) {
102
105
SrcVersion : "1.2.3" ,
103
106
SrcRelease : "1" ,
104
107
SrcEpoch : 2 ,
108
+ License : "MIT" ,
105
109
},
106
110
},
107
111
},
You can’t perform that action at this time.
0 commit comments