next #44

Open
sneak wants to merge 78 commits from next into main
Showing only changes of commit 6dc496fa9e - Show all commits

View File

@ -149,6 +149,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
existingMtime := time.Unix(existing.Mtime.Seconds, int64(existing.Mtime.Nanos)) existingMtime := time.Unix(existing.Mtime.Seconds, int64(existing.Mtime.Nanos))
if existing.Size != info.Size() || !existingMtime.Equal(info.ModTime()) { if existing.Size != info.Size() || !existingMtime.Equal(info.ModTime()) {
changed++ changed++
log.Debugf("M %s", relPath)
entries = append(entries, &freshenEntry{ entries = append(entries, &freshenEntry{
path: relPath, path: relPath,
size: info.Size(), size: info.Size(),
@ -169,6 +170,7 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
delete(existingByPath, relPath) delete(existingByPath, relPath)
} else { } else {
added++ added++
log.Debugf("A %s", relPath)
entries = append(entries, &freshenEntry{ entries = append(entries, &freshenEntry{
path: relPath, path: relPath,
size: info.Size(), size: info.Size(),
@ -195,6 +197,9 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
// Remaining entries in existingByPath are removed files // Remaining entries in existingByPath are removed files
removed = int64(len(existingByPath)) removed = int64(len(existingByPath))
for path := range existingByPath {
log.Debugf("D %s", path)
}
scanDuration := time.Since(startScan) scanDuration := time.Since(startScan)
log.Infof("scan complete in %s: %d unchanged, %d changed, %d added, %d removed", log.Infof("scan complete in %s: %d unchanged, %d changed, %d added, %d removed",