From 0f29caa4af3d03f6c68770f0e900855bdf7f2541 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 23 Jan 2017 20:35:45 +0100 Subject: [PATCH] cvs: fix undeclared variable access when cvsroot unset Signed-off-by: Tobias Ulmer --- Changelog | 1 + plugins/cvs.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 104cc0b..451dd2e 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ NEXT: + * Fix error in cvs source if cvsroot unset e2factory-2.3.16p0 * Fix collect_project, include default result and its deps into the BuildID diff --git a/plugins/cvs.lua b/plugins/cvs.lua index daeb90a..4a868ff 100644 --- a/plugins/cvs.lua +++ b/plugins/cvs.lua @@ -152,7 +152,7 @@ function cvs.cvs_source:initialize(rawsrc) self._working = rawsrc.working if rawsrc.cvsroot == nil then - e2lib.warnf("WDEFAULT", "in source %s:", sourcename) + e2lib.warnf("WDEFAULT", "in source %s:", self._name) e2lib.warnf("WDEFAULT", " source has no `cvsroot' attribute, defaulting to the server path") self._cvsroot = "." -- 2.39.5