summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@MIT.EDU>2009-08-29 19:59:20 -0400
committerGuillem Jover <guillem@debian.org>2009-10-14 02:26:17 +0200
commit4985c686c30b2d0682aab0885d32c36007a7998d (patch)
treed71303e6b2f4f5ce940074d2e5d166b097b2496d /scripts
parented26065325918ba214faded3183ad77e93a1a531 (diff)
downloaddpkg-4985c686c30b2d0682aab0885d32c36007a7998d.tar.gz
dpkg: Refactor file addition into package files to a new function
Added private function pkg_files_add_file for inserting a file to a package's entries. The function takes a file_tail to avoid an O(n^2) loop when adding to the end of the list. (This is what the original code does, so I have mirrored its behavior.) Signed-off-by: David Benjamin <davidben@mit.edu> Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions