• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

CLI interface to medialist (fossil mirror)


Commit MetaInfo

修訂1c64406f682510d8755871cc68d7c619167713c5 (tree)
時間2021-02-20 10:40:03
作者stigma@disroot.org <stigma@disr...>
Commiterstigma@disroot.org

Log Message

fix: check for both "general" and "lists"

The "medialist" page used "general" as that was the intended
key, but I forgot to actually update it in the source.

FossilOrigin-Name: fbcfaa4e20896f959048298fec6b67a838213ce8fb580412a5517dc5b8ffb716

Change Summary

差異

--- a/src/main.d
+++ b/src/main.d
@@ -53,7 +53,11 @@ main(string[] args)
5353
5454 ConfigParser parser = new ConfigParser();
5555 parser.read(buildPath(config_dir, "medialist.conf"));
56- if (parser.hasOption("Lists", "directory")) {
56+
57+ if (parser.hasOption("general", "directory")) {
58+ data_dir = parser.get("general", "directory");
59+ } else if (parser.hasOption("Lists", "directory")) {
60+ /* XXX: compat for early versions. no need to remove. */
5761 data_dir = parser.get("Lists", "directory").expandTilde;
5862 }
5963 parser.destroy();