@@ -112,13 +112,11 @@ func addLibraryPackage(f *os.File, gopkg, debLib string, dependencies []string)
112112 addDescription (f , gopkg , "(library)" )
113113}
114114
115- func addProgramPackage (f * os.File , gopkg , debProg string , dependencies [] string ) {
115+ func addProgramPackage (f * os.File , gopkg , debProg string ) {
116116 fmt .Fprintf (f , "\n " )
117117 fmt .Fprintf (f , "Package: %s\n " , debProg )
118118 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}" }
122120 fprintfControlField (f , "Depends" , deps )
123121 fmt .Fprintf (f , "Built-Using: ${misc:Built-Using}\n " )
124122 addDescription (f , gopkg , "(program)" )
@@ -172,12 +170,12 @@ func writeDebianControl(dir, gopkg, debsrc, debLib, debProg string, pkgType pack
172170 case typeLibrary :
173171 addLibraryPackage (f , gopkg , debLib , dependencies )
174172 case typeProgram :
175- addProgramPackage (f , gopkg , debProg , dependencies )
173+ addProgramPackage (f , gopkg , debProg )
176174 case typeLibraryProgram :
177175 addLibraryPackage (f , gopkg , debLib , dependencies )
178- addProgramPackage (f , gopkg , debProg , dependencies )
176+ addProgramPackage (f , gopkg , debProg )
179177 case typeProgramLibrary :
180- addProgramPackage (f , gopkg , debProg , dependencies )
178+ addProgramPackage (f , gopkg , debProg )
181179 addLibraryPackage (f , gopkg , debLib , dependencies )
182180 default :
183181 log .Fatalf ("Invalid pkgType %d in writeDebianControl(), aborting" , pkgType )
0 commit comments