فهرست منبع

fix formatkeys so it always has all available formatting keys

- always: no matter whether we use a user-defined format or not
- all: fix bug: it only had the basic keys, not the advanced keys
Thomas Waldmann 9 سال پیش
والد
کامیت
b28f4d886b
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      borg/archiver.py

+ 1 - 2
borg/archiver.py

@@ -509,10 +509,9 @@ class Archiver:
                             'LF': "\n",
                             'CR': "\r",
                             'NEWLINE': os.linesep,
-                            'formatkeys': ()
                             }
-                        item_data_advanced["formatkeys"] = list(item_data.keys())
                         item_data.update(item_data_advanced)
+                    item_data['formatkeys'] = list(item_data.keys())
 
                     if use_user_format:
                         print(format_line(user_format, item_data), end='')