public void initialize ( BinaryPackageControlFile packageControlFile ) { set ( "Binary" , packageControlFile . get ( "Package" ) ) ; set ( "Source" , Utils . defaultString ( packageControlFile . get ( "Source" ) , packageControlFile . get ( "Package" ) ) ) ; set ( "Architecture" , packageControlFile . get ( "Architecture" ) ) ; set ( "Version" , packageControlFile . get ( "Version" ) ) ; set ( "Maintainer" , packageControlFile . get ( "Maintainer" ) ) ; set ( "Changed-By" , packageControlFile . get ( "Maintainer" ) ) ; set ( "Distribution" , packageControlFile . get ( "Distribution" ) ) ; for ( Entry < String , String > entry : packageControlFile . getUserDefinedFields ( ) . entrySet ( ) ) { set ( entry . getKey ( ) , entry . getValue ( ) ) ; } StringBuilder description = new StringBuilder ( ) ; description . append ( packageControlFile . get ( "Package" ) ) ; if ( packageControlFile . get ( "Description" ) != null ) { description . append ( " - " ) ; description . append ( packageControlFile . getShortDescription ( ) ) ; } set ( "Description" , description . toString ( ) ) ; }
Initializes the fields on the changes file with the values of the specified binary package control file .