Bug#872305: diaspora: Package fails to install

2017-12-10 Thread Joseph Nuthalapati
reopen 872305 !
tag 872305 + patch
thanks

Was able to reproduce this.

Steps to reproduce:

1. Install diaspora and diaspora-common
2. Uninstall diaspora but not diaspora-common
3. Install diaspora package - the above error will be thrown

diaspora package shouldn't be deleting symlinks from diaspora-common.
The attached patch is to fix this issue.

-- 
Thanks,
Joseph Nuthalapati
From 810201286f5b4ed8400977ba39058aa60b0690fc Mon Sep 17 00:00:00 2001
From: Joseph Nuthalapati 
Date: Mon, 11 Dec 2017 13:01:46 +0530
Subject: [PATCH] Don't remove files that are created/removed by
 diaspora-common

The following symlinks are removed when diaspora-common is removed:

/usr/share/diaspora/public
/usr/share/diaspora/.bundle
/usr/share/diaspora/Gemfile.lock
/usr/share/diaspora/tmp
/usr/share/diaspora/app/assets

The following files are removed as part of postrm purge of diaspora-common:

/var/lib/diaspora/app-assets

/usr/share/diaspora/.eye is never created only /var/lib/diaspora/.eye exists.

Signed-off-by: Joseph Nuthalapati 
---
 debian/postrm | 7 ---
 1 file changed, 7 deletions(-)

diff --git a/debian/postrm b/debian/postrm
index 3ed8fa7..295877b 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -18,13 +18,6 @@ case "$1" in
 # This package is being removed, but its configuration has not yet
 # been purged.
 :
-
-rm -rf /usr/share/diaspora/tmp
-rm -rf /usr/share/diaspora/public
-rm -rf /usr/share/diaspora/app/assets/images
-rm -rf /usr/share/diaspora/.bundle
-rm -rf /usr/share/diaspora/.eye
-rm -rf /usr/share/diaspora/Gemfile.lock
 
 # Remove diversion
 # ldconfig is NOT needed during removal of a library, only during
-- 
2.15.0



signature.asc
Description: OpenPGP digital signature


Bug#872305: diaspora: Package fails to install

2017-12-07 Thread Joseph Nuthalapati
Tried a lot to reproduce this bug but it is not reproducible.
I don't see any permissions issues in the debian installation scripts
either.

Closing this.

Regards,
Joseph Nuthalapati




signature.asc
Description: OpenPGP digital signature


Bug#872305: diaspora: Package fails to install

2017-08-15 Thread njoseph
Package: diaspora
Version: 0.6.0.1+debian-1
Severity: serious


Dear maintainer,

Diaspora package installation fails with the following error:

Verifying we have all required libraries...
su: Permission denied
(Ignored)
There was an error while trying to write to 
`/usr/share/diaspora/.bundle/config`. It is likely that you need
to grant write permissions for that path.
dpkg: error processing package diaspora (--configure):
 subprocess installed post-installation script returned error exit status 23
Errors were encountered while processing:
 diaspora

The package is not usable due to this error.

Regards,
Joseph Nuthalapati



signature.asc
Description: OpenPGP digital signature