@@ -112,13 +112,11 @@ func addLibraryPackage(f *os.File, gopkg, debLib string, dependencies []string)
112
112
addDescription (f , gopkg , "(library)" )
113
113
}
114
114
115
- func addProgramPackage (f * os.File , gopkg , debProg string , dependencies [] string ) {
115
+ func addProgramPackage (f * os.File , gopkg , debProg string ) {
116
116
fmt .Fprintf (f , "\n " )
117
117
fmt .Fprintf (f , "Package: %s\n " , debProg )
118
118
fmt .Fprintf (f , "Architecture: any\n " )
119
- deps := dependencies
120
- sort .Strings (deps )
121
- deps = append (deps , "${misc:Depends}" , "${shlibs:Depends}" )
119
+ deps := []string {"${misc:Depends}" , "${shlibs:Depends}" }
122
120
fprintfControlField (f , "Depends" , deps )
123
121
fmt .Fprintf (f , "Built-Using: ${misc:Built-Using}\n " )
124
122
addDescription (f , gopkg , "(program)" )
@@ -172,12 +170,12 @@ func writeDebianControl(dir, gopkg, debsrc, debLib, debProg string, pkgType pack
172
170
case typeLibrary :
173
171
addLibraryPackage (f , gopkg , debLib , dependencies )
174
172
case typeProgram :
175
- addProgramPackage (f , gopkg , debProg , dependencies )
173
+ addProgramPackage (f , gopkg , debProg )
176
174
case typeLibraryProgram :
177
175
addLibraryPackage (f , gopkg , debLib , dependencies )
178
- addProgramPackage (f , gopkg , debProg , dependencies )
176
+ addProgramPackage (f , gopkg , debProg )
179
177
case typeProgramLibrary :
180
- addProgramPackage (f , gopkg , debProg , dependencies )
178
+ addProgramPackage (f , gopkg , debProg )
181
179
addLibraryPackage (f , gopkg , debLib , dependencies )
182
180
default :
183
181
log .Fatalf ("Invalid pkgType %d in writeDebianControl(), aborting" , pkgType )
0 commit comments