From ed8984ef4cca82f8b7af4db27d1928111dee02b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 28 Feb 2010 19:12:50 +0000 Subject: [PATCH] Yet another place that doesn't take -D parameter into account --- ChangeLog | 2 ++ pisi/api.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7d448dca..d587a87e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ files. * pisi/operations/delta.py: Take -D parameter into account when looking for file permission changes. + * pisi/api.py (snapshot): Take -D parameter into account when + storing config files. 2010-02-27 Fatih Aşıcı * pisi/archive.py: Install files into correct paths when the old diff --git a/pisi/api.py b/pisi/api.py index 58eff81f..8c58cd00 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -561,7 +561,8 @@ def snapshot(): # Save changed config files of the package in snapshot for f in installdb.get_files(name).list: if f.type == "config" and pisi.util.config_changed(f): - historydb.save_config(name, "/%s" % f.path) + fpath = pisi.util.join_path(ctx.config.dest_dir(), f.path) + historydb.save_config(name, fpath) processed += 1 ctx.ui.display_progress(operation = "snapshot",