Skip to content
Snippets Groups Projects
Forked from Arch Linux / infrastructure
Source project has a limited visibility.
  • Christian Heusel's avatar
    2ad7fefa
    dbscripts: fix createlinks for filenames that contain spaces · 2ad7fefa
    Christian Heusel authored
    So far the for loop recognized filenames with spaces as different words:
    
    $ for f in $(find pkg -type f); do echo "$f"; done
    pkg/usr/bin/Surge
    XT
    Effects
    pkg/usr/bin/Surge
    XT
    
    While the correct output here would have been:
    pkg/usr/bin/Surge XT Effects
    pkg/usr/bin/Surge XT
    
    We fix this by just passing everything directly to readelf, which also
    removes the loop overhead. This results in a significant speedup for
    packages with a lot of libraries and binaries.
    
    fixes: #524
    
    
    Co-Authored-By: default avatarEvangelos Foutras <evangelos@foutras.com>
    Verified
    2ad7fefa
    History
    dbscripts: fix createlinks for filenames that contain spaces
    Christian Heusel authored
    So far the for loop recognized filenames with spaces as different words:
    
    $ for f in $(find pkg -type f); do echo "$f"; done
    pkg/usr/bin/Surge
    XT
    Effects
    pkg/usr/bin/Surge
    XT
    
    While the correct output here would have been:
    pkg/usr/bin/Surge XT Effects
    pkg/usr/bin/Surge XT
    
    We fix this by just passing everything directly to readelf, which also
    removes the loop overhead. This results in a significant speedup for
    packages with a lot of libraries and binaries.
    
    fixes: #524
    
    
    Co-Authored-By: default avatarEvangelos Foutras <evangelos@foutras.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.