Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P Pacman
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pacman
  • Pacman
  • Repository
  • pacman
  • scripts
  • makepkg.sh.in
Find file BlameHistoryPermalink
  • Eli Schwartz's avatar
    makepkg: do not count hard links multiple times when calculating pkg size · 0272fca9
    Eli Schwartz authored Oct 27, 2019 and Allan McRae's avatar Allan McRae committed Oct 30, 2019
    
    
    Exclude files with hardlinks when cat'ing all the files, and do a second
    run to look at each file with hardlinks, keep track of the ones we've
    already operated on, and only cat each inode once. Then use "wc -c" to get
    the size of all (deduplicated) files the same way we were already doing.
    
    Original-patch-by: default avatarRonan Pigott <rpigott@berkeley.edu>
    Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
    Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
    0272fca9