<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/boklm/rbm, branch bug_28396</title>
<subtitle>Nicolas' rbm repository</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/'/>
<entry>
<title>fixup! Bug 28396: Create tmp files in rbm_tmp_dir instead of tmp_dir</title>
<updated>2020-06-04T19:50:10+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-06-04T19:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=e760ad0c0925cdf5f6bb77158293a371c3ecee6c'/>
<id>e760ad0c0925cdf5f6bb77158293a371c3ecee6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 28396: Create tmp files in rbm_tmp_dir instead of tmp_dir</title>
<updated>2020-06-04T19:00:21+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-06-04T18:38:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=57eded1e73dbf2230bc14d34a10dff26548c0a40'/>
<id>57eded1e73dbf2230bc14d34a10dff26548c0a40</id>
<content type='text'>
rbm_tmp_dir is a directory inside tmp_dir that is automatically removed
when rbm exits.

We also fix an issue in urlget when used within the exec script of an
input file. In this case the input_files_id was depending on the value
of tmp_dir because it is used in urlget. We fix that be setting
getting_input_files_id when computing input_files ids, so that urlget
can avoid using tmp_dir in this case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rbm_tmp_dir is a directory inside tmp_dir that is automatically removed
when rbm exits.

We also fix an issue in urlget when used within the exec script of an
input file. In this case the input_files_id was depending on the value
of tmp_dir because it is used in urlget. We fix that be setting
getting_input_files_id when computing input_files ids, so that urlget
can avoid using tmp_dir in this case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 33991: Remove unused features</title>
<updated>2020-06-04T17:03:36+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-04-25T12:32:27+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=24d9a52fe39538e9c5bfdca91fa7301bf91bf690'/>
<id>24d9a52fe39538e9c5bfdca91fa7301bf91bf690</id>
<content type='text'>
For simplification, we remove some unused features. Those features can
still be reimplemented externally if needed.

We remove the following options:
 - version_command
 - rpm
 - srpm
 - rpmspec
 - rpm_rel
 - debian_create
 - deb
 - deb_src
 - use_pbuilder
 - debian_revision
 - options

And the following commands:
 - rpmspec
 - rpm
 - srpm
 - deb-src
 - deb
 - pkg
 - publish
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For simplification, we remove some unused features. Those features can
still be reimplemented externally if needed.

We remove the following options:
 - version_command
 - rpm
 - srpm
 - rpmspec
 - rpm_rel
 - debian_create
 - deb
 - deb_src
 - use_pbuilder
 - debian_revision
 - options

And the following commands:
 - rpmspec
 - rpm
 - srpm
 - deb-src
 - deb
 - pkg
 - publish
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 34320: Set TMPDIR when running scripts</title>
<updated>2020-05-29T18:58:42+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-05-29T18:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=c50d8e22c4fcddc4ed567815b1b0135419c2a53c'/>
<id>c50d8e22c4fcddc4ed567815b1b0135419c2a53c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 33993: Check type of target, target_prepend, target_append</title>
<updated>2020-04-27T11:57:13+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-04-25T10:46:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=5f8c0ac72abfa72cc80d2ff24627c3e3f8db963f'/>
<id>5f8c0ac72abfa72cc80d2ff24627c3e3f8db963f</id>
<content type='text'>
Exit with an error message if target, target_prepend or target_append
defined in input_files is not an array.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Exit with an error message if target, target_prepend or target_append
defined in input_files is not an array.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 33990: Initialize step in non-build commands</title>
<updated>2020-04-24T15:34:13+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-04-24T14:01:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=18b396fb08ee9ee9311de7b8224197282f0935fe'/>
<id>18b396fb08ee9ee9311de7b8224197282f0935fe</id>
<content type='text'>
When using the build command, step gets initialized to 'build'. However
this was not done in some of the other non-build commands where the
value of step was left to rbm_init.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using the build command, step gets initialized to 'build'. However
this was not done in some of the other non-build commands where the
value of step was left to rbm_init.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 33283: Avoid computing sha256sum of files multiple times</title>
<updated>2020-02-12T17:36:24+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-02-12T15:09:00+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=e4f12abe9ed81050994b5345c21b988005259396'/>
<id>e4f12abe9ed81050994b5345c21b988005259396</id>
<content type='text'>
Instead, use the sha256file functon, which keeps the sha256sum of
files to avoid computing it twice. The function can now take a HASH as a
second argument, which can contain the key remove_cache indicating that
the sha256sum of a file should be cleared: we use this when we
find that a file has the wrong checksum and needs to be downloaded
again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead, use the sha256file functon, which keeps the sha256sum of
files to avoid computing it twice. The function can now take a HASH as a
second argument, which can contain the key remove_cache indicating that
the sha256sum of a file should be cleared: we use this when we
find that a file has the wrong checksum and needs to be downloaded
again.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 33283: Add caching for the exec template function</title>
<updated>2020-02-12T10:16:22+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2020-02-12T10:16:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=ce6b9136fc9e006536b34844946d67aa92cc0c21'/>
<id>ce6b9136fc9e006536b34844946d67aa92cc0c21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 32527: Don't leave partially downloaded files in case of error</title>
<updated>2019-11-30T12:33:42+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2019-11-20T15:44:13+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=94fce31e54d3fd491cdb3e3b9401919c0e841360'/>
<id>94fce31e54d3fd491cdb3e3b9401919c0e841360</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 27265: fix output_dir value in sub-projects</title>
<updated>2019-11-27T16:37:51+00:00</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@torproject.org</email>
</author>
<published>2018-08-22T10:34:40+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/user/boklm/rbm.git/commit/?id=03d53fcb0444fe9d752719bfbb62e3658d15d26d'/>
<id>03d53fcb0444fe9d752719bfbb62e3658d15d26d</id>
<content type='text'>
In the build_pkg call in input_files, we were setting the output_dir
option to the project's directory, causing this directory to be
incorrectly used as the output directory in some cases. But there is no
need to set output_dir at this point, so we can just remove it.

We also introduce a new feature allowing to set options for the current
project but not for the child projects listed in `input_files`. By
default the options are applied recursively to all projects. If some
options are defined under `norec/` then they are only applied on the
current project.

We use this feature in two places where we were setting the output_dir,
which removes the need to reset it in two places.

At the same time, we fix the `urlget()` call in input_files which was
incorrectly ignoring options.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the build_pkg call in input_files, we were setting the output_dir
option to the project's directory, causing this directory to be
incorrectly used as the output directory in some cases. But there is no
need to set output_dir at this point, so we can just remove it.

We also introduce a new feature allowing to set options for the current
project but not for the child projects listed in `input_files`. By
default the options are applied recursively to all projects. If some
options are defined under `norec/` then they are only applied on the
current project.

We use this feature in two places where we were setting the output_dir,
which removes the need to reset it in two places.

At the same time, we fix the `urlget()` call in input_files which was
incorrectly ignoring options.
</pre>
</div>
</content>
</entry>
</feed>
