Browse Source

Merge branch 'feature/create-install-pkgs' of git.tovijaeschke.xyz:tovi/PackageManager into feature/create-install-pkgs

feature/create-install-pkgs
Tovi Jaeschke-Rogers 3 years ago
parent
commit
a921764f36
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      Client/Filesystem/FilesystemDiff.go

+ 3
- 5
Client/Filesystem/FilesystemDiff.go View File

@ -119,14 +119,14 @@ func (fsStatus *FilesystemStatus) parseFile(indexBucket, picksBucket *bolt.Bucke
fsStatusWG.Done()
}()
fsStatusWG.Wait()
fsStatusWG.Add(1)
pick = picksBucket.Get([]byte(p))
known = indexBucket.Get([]byte(p))
if pick != nil {
fsStatusWG.Wait()
fsStatusWG.Add(1)
fsStatus.PickedFiles = append(fsStatus.PickedFiles, p)
fsStatusWG.Done()
return
}
@ -143,8 +143,6 @@ func (fsStatus *FilesystemStatus) parseFile(indexBucket, picksBucket *bolt.Bucke
e = newFileObject.IsDifferent(knownFileObject)
if e != nil {
fsStatusWG.Wait()
fsStatusWG.Add(1)
fsStatus.ModifiedFiles = append(fsStatus.ModifiedFiles, p)
}


Loading…
Cancel
Save