Opened 4 years ago

Last modified 4 years ago

#4192 closed defect

Build fails when using git repository — at Initial Version

Reported by: greiner Assignee:
Priority: P1 Milestone:
Module: Automation Keywords:
Cc: sebastian, kzar, kvas, trev Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29347006/

Description

Environment

Ubuntu 14.04

How to reproduce

git clone https://github.com/adblockplus/adblockpluschrome
cd adblockpluschrome
python build.py -t chrome build

Observed behaviour

Build not created due to the following error:

Traceback (most recent call last):
  File "./build.py", line 18, in <module>
    buildtools.build.processArgs(BASE_DIR, sys.argv)
  File "/home/thomas/tmp/adblockpluschrome/buildtools/build.py", line 613, in processArgs
    commands[command](baseDir, scriptName, opts, args, type)
  File "/home/thomas/tmp/adblockpluschrome/buildtools/build.py", line 55, in __call__
    return self._handler(baseDir, scriptName, opts, args, type)
  File "/home/thomas/tmp/adblockpluschrome/buildtools/build.py", line 207, in runBuild
    releaseBuild=releaseBuild, keyFile=keyFile)
  File "/home/thomas/tmp/adblockpluschrome/buildtools/packagerChrome.py", line 326, in createBuild
    version = getBuildVersion(baseDir, metadata, releaseBuild, buildNum)
  File "/home/thomas/tmp/adblockpluschrome/buildtools/packager.py", line 60, in getBuildVersion
    if len(buildNum) > 0:
TypeError: object of type 'int' has no len()

Note that this doesn't occur when using the Mercurial repository.

Expected behaviour

Build created without errors.

Change History (0)

Note: See TracTickets for help on using tickets.