~mvo/snappy/snappy-lp1460152-workaround-15.04

« back to all changes in this revision

Viewing changes to partition/bootloader_uboot.go

Only update changed files in SyncBootloader(). by mvo approved by chipaca

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
        srcDir := u.currentBootPath
219
219
        destDir := u.otherBootPath
220
220
 
221
 
        // always start from scratch: all files here are owned by us.
222
 
        os.RemoveAll(destDir)
223
 
 
224
 
        return runCommand("/bin/cp", "-a", srcDir, destDir)
 
221
        return helpers.RSyncWithDelete(srcDir, destDir)
225
222
}
226
223
 
227
224
func (u *uboot) HandleAssets() (err error) {