symlinking as standard rather tham hardlinking, otherwise ±L does nothing special

This commit is contained in:
Mattias Andrée 2012-08-27 01:47:58 +02:00
parent f0fcdd7903
commit 6431e38e4d
2 changed files with 6 additions and 3 deletions

View file

@ -1013,13 +1013,16 @@ Set the system's directory for cache directories.
@cindex @option{--dest-dir} @cindex @option{--dest-dir}
Set off environment for installation. Set off environment for installation.
@item --linking=hard @item --linking=symbolic
@cindex @option{--linking} @cindex @option{--linking}
Set how to link identical files. Directories cannot be hard linked on most Set how to link identical files. Directories cannot be hard linked on most
systems, therefore directories or always symbolically linked of hard linked systems, therefore directories or always symbolically linked of hard linked
is specified. is specified.
Recognised arguments are @code{copy}, @code{hard} and @code{symbolic}. Recognised arguments are @code{copy}, @code{hard} and @code{symbolic}.
@code{copy} implies that files and directories are not linked, but duplicated. @code{copy} implies that files and directories are not linked, but duplicated.
@command{ponysay ±L} will give the same output as @command{ponysay ±l} if @code{copy}
or @code{hard} is used. This is because it does link reading and not content or
inode comparison.
@end table @end table
Recognised compressions are @option{gz} which uses @option{gzip -9}, and @option{xz} Recognised compressions are @option{gz} which uses @option{gzip -9}, and @option{xz}

View file

@ -126,13 +126,13 @@ class Setup():
opts.add_argumented (help = 'Set off environment for installation\nEmpty by default', alternatives = ['--dest-dir'], arg='DESTDIR') opts.add_argumented (help = 'Set off environment for installation\nEmpty by default', alternatives = ['--dest-dir'], arg='DESTDIR')
opts.add_argumented (help = 'Set how to link identical files\nDefault = hard, copy and symbolic are also recognised', alternatives = ['--linking'], arg='TYPE') opts.add_argumented (help = 'Set how to link identical files\nDefault = symbolic, copy and hard are also recognised', alternatives = ['--linking'], arg='TYPE')
opts.parse() opts.parse()
self.linking = HARD self.linking = SYMBOLIC
if opts.opts['--linking'] is not None: if opts.opts['--linking'] is not None:
self.linking = opts.opts['--linking'][0] self.linking = opts.opts['--linking'][0]