[SCM] Debian packaging of Pinto CPAN distribution branch, master, updated. e88ba9bfbcd3407f76df3953253dcc079848a6df

Oleg Gashev oleg at gashev.net
Fri Jun 7 07:39:16 UTC 2013


The following commit has been merged in the master branch:
commit e88ba9bfbcd3407f76df3953253dcc079848a6df
Author: Oleg Gashev <oleg at gashev.net>
Date:   Fri Jun 7 07:38:09 2013 +0000

    Added warning to postinst if /var/lib/pinto already exist and a new repository is not created.

diff --git a/debian/pinto.postinst b/debian/pinto.postinst
index 47f3e29..0953c6b 100644
--- a/debian/pinto.postinst
+++ b/debian/pinto.postinst
@@ -11,6 +11,11 @@ if [ "$1" = configure ]; then
 
 	if [ ! -e /var/lib/pinto ] ; then
 		cp -r /usr/share/pinto/new-repository /var/lib/pinto
+	else
+		echo "Cannot create a new repository to /var/lib/pinto."
+		echo "/var/lib/pinto already exist."
+		echo "To create a new repository, remove /var/lib/pinto"
+		echo "and exec /usr/bin/pinto -r /var/lib/pinto init."
 	fi
 
 	if [ ! -e /var/run/pinto ] ; then
@@ -36,6 +41,7 @@ if [ "$1" = configure ]; then
 		chown pinto:adm /var/log/pinto/error.log
 		chmod 0640 /var/log/pinto/error.log
 	fi
+
 	if /bin/pidof /usr/bin/pintod >/dev/null 2>&1; then
 		invoke-rc.d pinto restart
 	else

-- 
Debian packaging of Pinto CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list