On 12 August 2006 at 20:10, Marc Glisse wrote:
| Package: r-doc-html
| Version: 2.3.1-2
| Severity: normal
|
| When I upgrade this package, I get:
|
| Removing symbolic link /usr/share/doc/r-doc-html/manual/
| rm: cannot remove `/usr/share/doc/r-doc-html/manual/': Not a directory
| dpkg: error processing /var/cache/apt/archives/r-doc-html_2.3.1-2_all.deb
(--unpack):
| subprocess pre-installation script returned error exit status 1
Zut alors. And I had really, really tested this.
Do you know which version you were upgrading from?
| Is the preinst script trying to remove the 'manual' symlink but actually
| using 'manual/', which fails?
It tests for symlink. But as this shows:
[EMAIL PROTECTED]:~> cd /tmp
[EMAIL PROTECTED]:/tmp> ln -s /var/tmp/ foo
[EMAIL PROTECTED]:/tmp> test -h foo && echo "It's a symlink"
It's a symlink
[EMAIL PROTECTED]:/tmp> test -d foo && echo "It's a directory"
It's a directory
[EMAIL PROTECTED]:/tmp>
I guess I need to make sure it is both -h and ! -d.
Dirk
--
Hell, there are no rules here - we're trying to accomplish something.
-- Thomas A. Edison
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]