<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45868</bug_id>
          
          <creation_ts>2010-09-15 19:31:41 -0700</creation_ts>
          <short_desc>update-webkit --chromium spitting out a spurious error</short_desc>
          <delta_ts>2010-09-18 18:21:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Prasad Tammana">prasadt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>279907</commentid>
    <comment_count>0</comment_count>
    <who name="Prasad Tammana">prasadt</who>
    <bug_when>2010-09-15 19:31:41 -0700</bug_when>
    <thetext>update-webkit --chromium invokes invokes update-webkit-chromium which checks for gclient.  And it does this by looking the value of `gclient --version`.  When gclient is not in the path, it returns an error.  Given that this is not a failure and the script moves on to look for it in other places, this ends up as spurious error in the output that can be misleading.

One fix would be to redirect stderr of the command to &quot;nul&quot; on windows and &quot;/dev/null&quot; on other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>279912</commentid>
    <comment_count>1</comment_count>
      <attachid>67762</attachid>
    <who name="Prasad Tammana">prasadt</who>
    <bug_when>2010-09-15 19:35:27 -0700</bug_when>
    <thetext>Created attachment 67762
Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280848</commentid>
    <comment_count>2</comment_count>
      <attachid>67762</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2010-09-17 14:11:28 -0700</bug_when>
    <thetext>Comment on attachment 67762
Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.

This needs a ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280850</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-09-17 14:16:27 -0700</bug_when>
    <thetext>btw, I see other places in perl code using &quot;File::Spec-&gt;devnull()&quot; instead of detecting the OS and setting a variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280903</commentid>
    <comment_count>4</comment_count>
      <attachid>67959</attachid>
    <who name="Prasad Tammana">prasadt</who>
    <bug_when>2010-09-17 15:19:11 -0700</bug_when>
    <thetext>Created attachment 67959
Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.

Added ChangeLog and using commandExists() instead of back tick.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281238</commentid>
    <comment_count>5</comment_count>
      <attachid>67959</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-18 18:21:29 -0700</bug_when>
    <thetext>Comment on attachment 67959
Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.

Clearing flags on attachment: 67959

Committed r67806: &lt;http://trac.webkit.org/changeset/67806&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281239</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-18 18:21:34 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67762</attachid>
            <date>2010-09-15 19:35:27 -0700</date>
            <delta_ts>2010-09-17 15:47:34 -0700</delta_ts>
            <desc>Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.</desc>
            <filename>update_webkit_chromium.txt</filename>
            <type>text/plain</type>
            <size>687</size>
            <attacher name="Prasad Tammana">prasadt</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL1NjcmlwdHMvdXBkYXRlLXdlYmtpdC1jaHJvbWl1bQo9PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09Ci0tLSBXZWJLaXRUb29scy9TY3JpcHRzL3VwZGF0ZS13ZWJraXQtY2hyb21pdW0JKHJldmlz
aW9uIDY3NTk0KQorKysgV2ViS2l0VG9vbHMvU2NyaXB0cy91cGRhdGUtd2Via2l0LWNocm9taXVt
CSh3b3JraW5nIGNvcHkpCkBAIC0zMyw5ICszMywxNyBAQCB1c2UgR2V0b3B0OjpMb25nOwogCiBj
aGRpcigiV2ViS2l0L2Nocm9taXVtIikgb3IgZGllICQhOwogCisjIEdldCB0aGUgT1Mgc3BlY2lm
aWMgL2Rldi9udWxsLgorbXkgJGRldm51bGw7CitpZiAoJF5PIGVxICdNU1dpbjMyJykgeworICAk
ZGV2bnVsbCA9ICdudWwnOworfSBlbHNlIHsKKyAgJGRldm51bGwgPSAnL2Rldi9udWxsJzsKK30K
KwogIyBGaW5kIGdjbGllbnQgb3IgaW5zdGFsbCBpdC4KIG15ICRnY2xpZW50UGF0aDsKLWlmIChg
Z2NsaWVudCAtLXZlcnNpb25gKSB7CitpZiAoYGdjbGllbnQgLS12ZXJzaW9uIDI+ICRkZXZudWxs
YCkgewogICAgICRnY2xpZW50UGF0aCA9ICdnY2xpZW50JzsKIH0gZWxzaWYgKC1lICdkZXBvdF90
b29scy9nY2xpZW50JykgewogICAgICRnY2xpZW50UGF0aCA9ICdkZXBvdF90b29scy9nY2xpZW50
JzsK
</data>
<flag name="review"
          id="57157"
          type_id="1"
          status="-"
          setter="levin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67959</attachid>
            <date>2010-09-17 15:19:11 -0700</date>
            <delta_ts>2010-09-18 18:21:29 -0700</delta_ts>
            <desc>Redirect stderr from `gclient --version` to nul on windows and /dev/null on other platforms.</desc>
            <filename>update_webkit_chromium.txt</filename>
            <type>text/plain</type>
            <size>1277</size>
            <attacher name="Prasad Tammana">prasadt</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDY3NzUwKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDktMTcgIFByYXNhZCBUYW1tYW5hICA8
cHJhc2FkdEBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICAgICAgdXBkYXRlLXdlYmtpdCAtLWNocm9taXVtIHNwaXR0aW5nIG91dCBhIHNw
dXJpb3VzIGVycm9yCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD00NTg2OAorCisgICAgICAgICogU2NyaXB0cy91cGRhdGUtd2Via2l0LWNocm9taXVtOiBV
c2UgY29tbWFuZEV4aXN0cygpIGZ1bmN0aW9uIHRvIGNoZWNrIGZvciBleGlzdGVuY2Ugb2YgZ2Ns
aWVudC4KKwogMjAxMC0wOS0xNyAgTWFydGluIFJvYmluc29uICA8bXJvYmluc29uQGlnYWxpYS5j
b20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgT2xpdmVyIEh1bnQuCkluZGV4OiBXZWJLaXRUb29s
cy9TY3JpcHRzL3VwZGF0ZS13ZWJraXQtY2hyb21pdW0KPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0VG9v
bHMvU2NyaXB0cy91cGRhdGUtd2Via2l0LWNocm9taXVtCShyZXZpc2lvbiA2Nzc1MCkKKysrIFdl
YktpdFRvb2xzL1NjcmlwdHMvdXBkYXRlLXdlYmtpdC1jaHJvbWl1bQkod29ya2luZyBjb3B5KQpA
QCAtMjksMTMgKzI5LDE2IEBACiAjIFVwZGF0ZSBzY3JpcHQgZm9yIHRoZSBXZWJLaXQgQ2hyb21p
dW0gUG9ydC4KIAogdXNlIEZpbGU6OlBhdGg7Cit1c2UgRmluZEJpbjsKIHVzZSBHZXRvcHQ6Okxv
bmc7Cit1c2UgbGliICRGaW5kQmluOjpCaW47Cit1c2Ugd2Via2l0ZGlyczsKIAogY2hkaXIoIldl
YktpdC9jaHJvbWl1bSIpIG9yIGRpZSAkITsKIAogIyBGaW5kIGdjbGllbnQgb3IgaW5zdGFsbCBp
dC4KIG15ICRnY2xpZW50UGF0aDsKLWlmIChgZ2NsaWVudCAtLXZlcnNpb25gKSB7CitpZiAoY29t
bWFuZEV4aXN0cygnZ2NsaWVudCcpKSB7CiAgICAgJGdjbGllbnRQYXRoID0gJ2djbGllbnQnOwog
fSBlbHNpZiAoLWUgJ2RlcG90X3Rvb2xzL2djbGllbnQnKSB7CiAgICAgJGdjbGllbnRQYXRoID0g
J2RlcG90X3Rvb2xzL2djbGllbnQnOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>