[wpkg-users] [Bug 221] New: log expanded command string

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Jul 9 03:12:36 CEST 2011


http://bugzilla.wpkg.org/show_bug.cgi?id=221

           Summary: log expanded command string
           Product: WPKG
           Version: 1.1.3-RCx
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: pendl2megabit at yahoo.de
         QAContact: wpkg-users at lists.wpkg.org


In function "exec(cmd, timeout, workdir)" I suggest to expand the command line
when logged.

This enables spotting of wrongly set variables better.

Following changes are proposed:

1) dinfo("Executing command: " + shell.ExpandEnvironmentStrings(cmd));

2) var message = "Command '" + shell.ExpandEnvironmentStrings(cmd) + "\" was
unsuccessful.\n" + e.description;

May be introduce the variable cmdExpanded to only expand once.

---
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list