Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Issue 159003002: Add script to build Debian packages (Closed)

Created:
6 years, 10 months ago by Søren Gjesse
Modified:
6 years, 10 months ago
Reviewers:
ricow1, kustermann
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add script to build Debian packages The script create_debian_packages.py will build source and binary Debian packages from the generated tarball. R=kustermann@google.com, ricow@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=32550

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed review comments #

Total comments: 4

Patch Set 3 : Addressed additional review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -0 lines) Patch
M tools/bots/src-tarball.py View 1 chunk +3 lines, -0 lines 0 comments Download
A tools/create_debian_packages.py View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
M tools/linux_dist_support/debian/rules View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
6 years, 10 months ago (2014-02-10 15:55:17 UTC) #1
kustermann
lgtm with comments https://codereview.chromium.org/159003002/diff/1/tools/bots/src-tarball.py File tools/bots/src-tarball.py (right): https://codereview.chromium.org/159003002/diff/1/tools/bots/src-tarball.py#newcode3 tools/bots/src-tarball.py:3: # Copyright (c) 2014, the Dart ...
6 years, 10 months ago (2014-02-10 18:04:48 UTC) #2
Søren Gjesse
PTAL https://codereview.chromium.org/159003002/diff/1/tools/bots/src-tarball.py File tools/bots/src-tarball.py (right): https://codereview.chromium.org/159003002/diff/1/tools/bots/src-tarball.py#newcode3 tools/bots/src-tarball.py:3: # Copyright (c) 2014, the Dart project authors. ...
6 years, 10 months ago (2014-02-11 10:21:57 UTC) #3
kustermann
LGTM https://codereview.chromium.org/159003002/diff/70001/tools/create_debian_packages.py File tools/create_debian_packages.py (right): https://codereview.chromium.org/159003002/diff/70001/tools/create_debian_packages.py#newcode48 tools/create_debian_packages.py:48: copyfile(tarball, origtarball) When you extract the tarball, you ...
6 years, 10 months ago (2014-02-11 10:33:02 UTC) #4
Søren Gjesse
Committed patchset #3 manually as r32550 (presubmit successful).
6 years, 10 months ago (2014-02-11 11:08:33 UTC) #5
Søren Gjesse
6 years, 10 months ago (2014-02-12 08:29:18 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/159003002/diff/70001/tools/create_debian_pack...
File tools/create_debian_packages.py (right):

https://codereview.chromium.org/159003002/diff/70001/tools/create_debian_pack...
tools/create_debian_packages.py:48: copyfile(tarball, origtarball)
On 2014/02/11 10:33:02, kustermann wrote:
> When you extract the tarball, you specify the destination directory anyway.
> Couldn't you just do
> 
>   with tarfile.open(tarball) as tar:
>     tar.extractall(path=temp_dir)
> 
> And remove lines 47/48?

The tar-file with the "orig" name needs to be in the parent directory of where
it is extracted for the Debian package builder to run.

https://codereview.chromium.org/159003002/diff/70001/tools/create_debian_pack...
tools/create_debian_packages.py:76: join('%s-1_amd64.deb' % debbase),
On 2014/02/11 10:33:02, kustermann wrote:
> These join() calls do nothing, so you can remove them. The string expansions
are
> enough.

Done.

Powered by Google App Engine
This is Rietveld 408576698