Diff

Differences From Artifact [6548de250e]:

To Artifact [3523082fbc]:


   186    186   	close $fd
   187    187   
   188    188   	file delete $altindexfile
   189    189   	file link -hard $altindexfile $indexfile
   190    190   }
   191    191   
   192    192   # Create "package/name/<pkg>/ver/<ver>/arch/<arch>/file"
   193         -proc create_output_files {dstdir pkginfo_arrlist} {
          193  +proc create_output_files {dstdir pkginfo_arrlist {force 0}} {
   194    194   	array set pkginfo $pkginfo_arrlist
   195    195   
   196    196   	foreach ent [array names pkginfo] {
   197    197   		set pkg [lindex $ent 0]
   198    198   		set ver [lindex $ent 1]
   199    199   		set arch [lindex $ent 2]
   200    200   
................................................................................
   207    207   		set regfile [file join $workdir file]
   208    208   		set extfile [file join $workdir $extfiletail]
   209    209   		catch {
   210    210   			file mkdir $workdir
   211    211   		}
   212    212   
   213    213   		if {$multifile} {
          214  +			if {[file exists $extfile] && !$force} {
          215  +				continue
          216  +			}
          217  +
   214    218   			if {[catch {
   215    219   				cd $pkgdir
   216    220   
   217    221   				file delete $extfile
   218    222   				exec zip -r $extfile . -x build.log
   219    223   			} err]} {
   220    224   				puts "Error while zipping: $err"