[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#484997: unison: Place logfile in .unison directory instead of home directory



control: tags -1 pending

After 12 years or so, I think its time to NMU this change :)

in deferred/15, feel free to reschedule or delete if you want!

debdiff attached

G.

On Sun, 08 Jun 2008 00:47:33 +0800 Rui Boon <ruiboon@gmail.com> wrote:
> Package: unison
> Version: 2.27.57-1
> Severity: wishlist
> Tags: patch
> 
> 
> Currently unison places its logfile in the home directory. It would be better (and nicer) if unison, by default, could place its logfile in .unison dir. 
> 
> I have attached a patch (in dpatch format) to address this 'wishlist'
> 
> This wishlist could also be found at Ubuntu launchpad [0]
> 
> 
> [0]: https://bugs.launchpad.net/bugs/234365
> 
> 
> Cheers
> 
> Rui Boon
> 
> 
> 
> 
diff -Nru unison-2.48.4/debian/changelog unison-2.48.4/debian/changelog
--- unison-2.48.4/debian/changelog	2019-12-04 09:44:32.000000000 +0100
+++ unison-2.48.4/debian/changelog	2020-02-17 16:32:12.000000000 +0100
@@ -1,3 +1,15 @@
+unison (2.48.4-4.1) unstable; urgency=medium
+
+  [ Gianfranco Costamagna ]
+  * Non-maintainer upload.
+
+  [ Tan Rui Boon ]
+  * Change default logfile directory to .unison
+   by prepending .unison to name of logfile in ubase/trace.ml
+   (LP: #234365, Closes: #484997)
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Mon, 17 Feb 2020 16:32:12 +0100
+
 unison (2.48.4-4) unstable; urgency=medium
 
   * Rename debian/NEWS.Debian to debian/NEWS so that it is installed
diff -Nru unison-2.48.4/debian/patches/change-logfile-location.patch unison-2.48.4/debian/patches/change-logfile-location.patch
--- unison-2.48.4/debian/patches/change-logfile-location.patch	1970-01-01 01:00:00.000000000 +0100
+++ unison-2.48.4/debian/patches/change-logfile-location.patch	2020-02-17 16:32:10.000000000 +0100
@@ -0,0 +1,23 @@
+Description: Change logfile location
+ ... by prepending .unison to name of logfile in ubase/trace.ml
+Author: Tan Rui Boon <ruiboon@gmail.com>
+Bug-Debian: http://bugs.debian.org/484997
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/234365
+Forwarded: no
+Last-Update: 2011-09-10
+
+--- a/ubase/trace.ml
++++ b/ubase/trace.ml
+@@ -113,10 +113,10 @@ let logging =
+ 
+ let logfile =
+   Prefs.createFspath "logfile"
+-    (Util.fileInHomeDir "unison.log")
++    (Util.fileInHomeDir ".unison/unison.log")
+     "!logfile name"
+     "By default, logging messages will be appended to the file
+-     \\verb|unison.log| in your HOME directory.  Set this preference if
++     \\verb|unison.log| in your .unison directory.  Set this preference if
+      you prefer another file."
+ 
+ let logch = ref None
diff -Nru unison-2.48.4/debian/patches/series unison-2.48.4/debian/patches/series
--- unison-2.48.4/debian/patches/series	2019-12-04 09:44:32.000000000 +0100
+++ unison-2.48.4/debian/patches/series	2020-02-17 16:32:10.000000000 +0100
@@ -1 +1,2 @@
 0001-Fix-compilation-with-OCaml-4.08.1.patch
+change-logfile-location.patch

Reply to: