[SCM] Git repository for pkg-virtuoso branch, master, updated. debian/6.1.3+dfsg1-2.1-62-g173553d
José Manuel Santamar?==?UTF-8?Q?ía Lema
panfaust at gmail.com
Mon Dec 31 00:20:13 UTC 2012
The following commit has been merged in the master branch:
commit 173553dd8bd82c6eabcc1f132772409ffb6a2916
Author: José Manuel Santamaría Lema <panfaust at gmail.com>
Date: Mon Dec 31 01:18:45 2012 +0100
Change virtuoso-opensource-6.1.prerm to not leave unowned files.
diff --git a/debian/changelog b/debian/changelog
index 73a943b..a4e8ae8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ virtuoso-opensource (6.1.4+dfsg1-2) UNRELEASED; urgency=low
* Add portable-method-for-escaping-symbol-gawk.diff, fixes the conductor web
interface (Closes: #680764).
+ * Changed virtuoso-opensource-6.1.prerm to not leave an unowned file
+ (/root/.odbc.ini) after package removal (Closes: #677286).
-- José Manuel Santamaría Lema <panfaust at gmail.com> Thu, 22 Nov 2012 17:25:10 +0100
diff --git a/debian/virtuoso-opensource-6.1.prerm b/debian/virtuoso-opensource-6.1.prerm
index 392c23c..8ede6e3 100644
--- a/debian/virtuoso-opensource-6.1.prerm
+++ b/debian/virtuoso-opensource-6.1.prerm
@@ -9,7 +9,17 @@ ${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
db_get virtuoso-opensource-6.1/register-odbc-dsn || true
if [ "$RET" = "true" ]; then
+ if [ ! -f "$HOME/.odbc.ini" ]; then
+ REMOVE_ODBC_INI=true
+ fi
odbcinst -u -s -l -n VOS || true
+ # The previous odbcinst command may create the file $HOME/.odbc.ini
+ # if it didn't exist previously, leaving unowned files after removing
+ # the package, so we remove the .odbc.ini if it's neccesary, see:
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677286
+ if [ -n "$REMOVE_ODBC_INI" ]; then
+ rm -f $HOME/.odbc.ini
+ fi
fi
# removing from list of owners of this question removes us from it's choices
--
Git repository for pkg-virtuoso
More information about the Pkg-virtuoso-commits
mailing list