[xml/sgml-commit] [xml-core] 01/01: Import Upstream version 0.09

Mattia Rizzolo mattia at debian.org
Fri Sep 30 16:12:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch upstream
in repository xml-core.

commit f52bdd33ce32aa1d64cf4dabbaf4212395a46d9a
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Fri Sep 30 15:35:20 2016 +0000

    Import Upstream version 0.09
---
 debian/changelog        |  9 +++++++++
 debian/xml-core.postrm  | 12 +++---------
 debian/xml-core.preinst |  4 +---
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ab513fc..747a10a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+xml-core (0.09-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/xml-core.postrm, debian/xml-core.preinst: Use absolute path
+    names for files instead of doing a "cd /foo; mv plim plom; cd -" dance
+    (especially since the dance if fragile, too). Closes: #358364.
+
+ -- Lars Wirzenius <liw at iki.fi>  Thu, 13 Apr 2006 20:25:34 +0000
+
 xml-core (0.09) unstable; urgency=low
 
   * schemas/catalog: added official FPI for XML catalog DTD
diff --git a/debian/xml-core.postrm b/debian/xml-core.postrm
index 61c6c90..351f26e 100644
--- a/debian/xml-core.postrm
+++ b/debian/xml-core.postrm
@@ -16,9 +16,7 @@ then
 
     ## ------------------------------------------------------------------
     ## remove /var/lib/xml-core
-    cd /var/lib
-    rmdir --ignore-fail-on-non-empty xml-core
-    cd - >/dev/null
+    rmdir --ignore-fail-on-non-empty /var/lib/xml-core
 
     ## ------------------------------------------------------------------
     ## remove root XML catalog
@@ -27,17 +25,13 @@ then
 
     ## ------------------------------------------------------------------
     ## remove /etc/xml
-    cd /etc
-    rmdir --ignore-fail-on-non-empty xml
-    cd - >/dev/null
+    rmdir --ignore-fail-on-non-empty /etc/xml
 
     ## ------------------------------------------------------------------
     ## restore legacy /etc/xml/catalog
     if [ -f /etc/xml/catalog.legacy ]
     then
-        cd /etc/xml
-	mv catalog.legacy catalog
-        cd - >/dev/null
+	mv /etc/xml/catalog.legacy /etc/xml/catalog
     fi
 
 fi
diff --git a/debian/xml-core.preinst b/debian/xml-core.preinst
index 28a2c8d..fa2ab6f 100644
--- a/debian/xml-core.preinst
+++ b/debian/xml-core.preinst
@@ -34,9 +34,7 @@ then
     ## preserve legacy /etc/xml/catalog
     if [ -f /etc/xml/catalog ]
     then
-        cd /etc/xml
-	mv catalog catalog.legacy
-        cd - >/dev/null
+	mv /etc/xml/catalog /etc/xml/catalog.legacy
     fi
 
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-xml-sgml/xml-core.git



More information about the debian-xml-sgml-commit mailing list