[vala/0.42] valadoc/html: Skip package dependency if target directory already exists
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] valadoc/html: Skip package dependency if target directory already exists
- Date: Mon, 26 Nov 2018 09:12:52 +0000 (UTC)
commit be01b3de8abbd007fcb9aa5ffb958766d80fcc90
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Nov 14 22:12:54 2018 +0100
valadoc/html: Skip package dependency if target directory already exists
Simply assume we already generated the documentation for this dependency
in a previous invocation running with --deps.
valadoc/doclets/html/doclet.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/valadoc/doclets/html/doclet.vala b/valadoc/doclets/html/doclet.vala
index b2dde98a5..1bb21e94d 100644
--- a/valadoc/doclets/html/doclet.vala
+++ b/valadoc/doclets/html/doclet.vala
@@ -109,6 +109,10 @@ public class Valadoc.Html.Doclet : Valadoc.Html.BasicDoclet {
string pkg_name = package.name;
string path = GLib.Path.build_filename ( this.settings.path, pkg_name );
+ if (package.is_package && FileUtils.test (path, FileTest.EXISTS)) {
+ return;
+ }
+
var rt = DirUtils.create (path, 0777);
rt = DirUtils.create (GLib.Path.build_filename (path, "img"), 0777);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]