Jari Aalto wrote: > Manual page reads: > > Note: dpkg-repack will place the created package in the current direc- > tory. > > > It would be nice to have a new option that would remove the need to > "cd" to the destination directory. The new option could be modeled > after familiar GNU tar: > > -C, --directory DIR > change to directory DIR
The reason -C is useful in tar is because you can do something like: tar czvf foo.tar.gz -C /tmp/foo bar baz Which is much simpler than: OLDDIR=`pwd`; cd /tmp/foo; tar czvf $OLDDIR/foo.tar.gz bar baz However, with dpkg-repack, it's no harder to type dpkg-repack -C /tmp foo cd /tmp;dpkg-repack foo Also, your proposed -C is exactly opposite to how it works in gnu tar, where it makes tar cd to the specified directory _after_ opening the output file in the current directory. -- see shy jo
signature.asc
Description: Digital signature