Re: [pacman-dev] FS#7525: Permissions of .pacnew files
Move the discussion to the ML... Pacman wrote:
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#7525 - Permissions of .pacnew files User who did this - Xavier (shining)
---------- Well then, maybe we could read the whole archive a first time, for determining how to handle backup files (on the fly md5 computation), and we record this information somehow. And then a second time, where we actually extract the files.
Otherwise, the files in backup array are always small config files afaik, but well, it could be indeed be safer to avoid putting the whole file in memory.
Oh well, finally, the current behavior is alright I guess, and this is probably not the correct place for discussing about things anyway (silly me). So I think this bug could be closed now :) ----------
I've been thinking of another solution, include some more information in .FILELIST eg: # directory name d usr d usr/bin # file name checksum f usr/bin/foo md5sum # link name target l usr/bin/bar foo This way we can get the md5sum from the file list rather than having to extract the file to get it's md5sum. Andrew
On Sun, Jul 08, 2007 at 06:37:39PM +0100, Andrew Fyfe wrote:
I've been thinking of another solution, include some more information in .FILELIST eg:
# directory name d usr d usr/bin # file name checksum f usr/bin/foo md5sum # link name target l usr/bin/bar foo
This way we can get the md5sum from the file list rather than having to extract the file to get it's md5sum.
Andrew
Oh actually, I had the same idea (for the md5sum part), after reading what Baptiste said there : http://bugs.archlinux.org/task/7485#comment17453 that .FILELIST could be extended. Since that md5sum computation was annoying me, I thought it would be nicer if it was directly in .FILELIST. Maybe that looked like a silly idea, so I never talked about it :)
Xavier wrote:
On Sun, Jul 08, 2007 at 06:37:39PM +0100, Andrew Fyfe wrote:
I've been thinking of another solution, include some more information in .FILELIST eg:
# directory name d usr d usr/bin # file name checksum f usr/bin/foo md5sum # link name target l usr/bin/bar foo
This way we can get the md5sum from the file list rather than having to extract the file to get it's md5sum.
Andrew
Oh actually, I had the same idea (for the md5sum part), after reading what Baptiste said there : http://bugs.archlinux.org/task/7485#comment17453 that .FILELIST could be extended. Since that md5sum computation was annoying me, I thought it would be nicer if it was directly in .FILELIST. Maybe that looked like a silly idea, so I never talked about it :)
_______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev
The command to generate the above example... ( find \( ! -type l -a ! -type f -printf "%y %P\n" \) , \ \( -type l -printf "l %P %l\n" \) ; \ find * -type f -print0 | xargs md5sum | \ awk '{printf "f %s %s\n", $2, $1}' \ ) | sort -k 2 Andrew
participants (2)
-
Andrew Fyfe
-
Xavier