Jonathan Nieder wrote: > --- a/debian/git.NEWS.Debian > +++ b/debian/git.NEWS.Debian > @@ -4,22 +4,20 @@ git (1:1.8.3.2-1.1) experimental; urgency=low [...] > + Symlinks are installed during the upgrade to ensure existing > + repositories remain accessible. If no local scripts or > + configuration depend on /var/cache/git then it is safe to remove > + that directory after replacing these symlinks with their targets: > + > + mv -f /var/cache/git/* /var/lib/git/ > + rmdir /var/cache/git
A tweak on top. -- >8 -- Subject: git/NEWS.Debian: tweak instructions to handle subdirectories Coreutils mv will not replace a symlink with a directory, even with "-f", so if /var/cache/git/ had any subdirectories then the advice mv -f /var/cache/git/* /var/lib/git/ would fail. Recommend "mv --backup" instead, which moves any destination files out of the way to make room. The symlinks can be cleared away afterward with a separate command. mv --backup /var/cache/git/* /var/lib/git/ rm /var/lib/git/*~ Signed-off-by: Jonathan Nieder <jrnie...@gmail.com> --- debian/git.NEWS.Debian | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/git.NEWS.Debian b/debian/git.NEWS.Debian index 9312a25..041eb00 100644 --- a/debian/git.NEWS.Debian +++ b/debian/git.NEWS.Debian @@ -14,8 +14,9 @@ git (1:1.8.3.2-1.1) experimental; urgency=low configuration depend on /var/cache/git then it is safe to remove that directory after replacing these symlinks with their targets: - mv -f /var/cache/git/* /var/lib/git/ + mv --backup /var/cache/git/* /var/lib/git/ rmdir /var/cache/git + rm /var/lib/git/*~ -- Jonathan Nieder <jrnie...@gmail.com> Sat, 06 Jul 2013 16:17:48 -0700 -- 1.8.3.1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org