From: Luke Shumaker
These are things that were (IMO) missed in 5afac1e. I found them using:
git grep -E '(plain|msg|msg2|warning|error|die) "[^"]*\$'
I went a little above-and-beyond for escaping strings for the error
messages in db-functions' arch_repo_add and
From: Luke Shumaker
- ftpdir-cleanup.bats: Glob expansion does not occur in [[ -f ]] tests.
The [[ ! -f .../${pkgname}-*${PKGEXT} ]] checks were checking that there
were no files containing a literal '*' for that part of their name.
Obviously, this isn't what was
From: Luke Shumaker
I managed to stumble across a bug in BATS where the run() function
screwed with the global IFS. The bug has been fixed in git, but isn't
in a release yet.
https://github.com/sstephenson/bats/issues/89
Anyway, this bug breaks __getCheckSum().
From: Luke Shumaker
These are a few minor unrelated touch-ups that I noticed when doing
the PKGEXT work. There's no real theme to them.
v2:
- Use Bash 4.4 feature to avoid introducing temporary variables in
the printf commit
- Mention splitting declaring and setting
On 02/22/2018 08:52 PM, Luke Shumaker wrote:
> I guess I *should* have explained it a bit more; the escaping of the
> package list happens when assigning pkgs_str:
>
> printf -v pkgs_str -- '%q ' "${pkgs[@]}"
Hmm, true. But the version without the additional variable wins IMO.
> Anyway,
On Thu, 22 Feb 2018 19:27:04 -0500,
Eli Schwartz wrote:
>
> [1 Re: [arch-projects] [dbscripts] [PATCH 1/3] test:
> common.bash:__getCheckSum: Don't rely on IFS ]
> [1.1 ]
> On 02/22/2018 06:43 PM, Luke Shumaker wrote:
> > On Thu, 22 Feb 2018 16:43:36 -0500,
> > Eli Schwartz wrote:
> >>>
On Thu, 22 Feb 2018 19:23:17 -0500,
Eli Schwartz wrote:
>
> On 02/22/2018 06:54 PM, Luke Shumaker wrote:
> >> I do see what you're doing, I'm just not sure why. Is the whole idea
> >> with this extra variable floating around, to avoid tokenizing
> >> "${pkgs[@]}" as separate messages? That's why
On 02/22/2018 06:43 PM, Luke Shumaker wrote:
> On Thu, 22 Feb 2018 16:43:36 -0500,
> Eli Schwartz wrote:
>>> __getCheckSum() {
>>> - local result=($(sha1sum $1))
>>> - echo ${result[0]}
>>> + local result
>>> + result="$(sha1sum "$1")"
>>> + echo "${result%% *}"
>>
>> Why are you moving
On 02/22/2018 06:54 PM, Luke Shumaker wrote:
>> I do see what you're doing, I'm just not sure why. Is the whole idea
>> with this extra variable floating around, to avoid tokenizing
>> "${pkgs[@]}" as separate messages? That's why "${pkgs[*]}" tokenizes the
>> members of an array as one word by
On Thu, 22 Feb 2018 16:44:20 -0500,
Eli Schwartz wrote:
> > I went a little above-and-beyond for escaping strings for the error
> > messages in db-functions' arch_repo_add and arch_repo_remove. The
> > code should explain itself, but I wanted to point it out, as it's more
> > complex than the
On Thu, 22 Feb 2018 16:43:36 -0500,
Eli Schwartz wrote:
> > __getCheckSum() {
> > - local result=($(sha1sum $1))
> > - echo ${result[0]}
> > + local result
> > + result="$(sha1sum "$1")"
> > + echo "${result%% *}"
>
> Why are you moving over to declaring the variable and assigning it
On 02/22/2018 03:43 PM, Luke Shumaker wrote:
> From: Luke Shumaker
>
> - ftpdir-cleanup.bats: Glob expansion does not occur in [[ -f ]] tests.
>The [[ ! -f .../${pkgname}-*${PKGEXT} ]] checks were checking that there
>were no files containing a literal '*' for that
On 02/22/2018 03:43 PM, Luke Shumaker wrote:
> From: Luke Shumaker
>
> These are things that were (IMO) missed in 5afac1e. I found them using:
>
> git ls-files|xargs grep -E '(plain|msg|msg2|warning|error|die) "[^"]*\$'
Consider using git grep next time :p rather than
On 02/22/2018 03:43 PM, Luke Shumaker wrote:
> From: Luke Shumaker
>
> I managed to stumble across a bug in BATS where the run() function
> screwed with the global IFS. The bug has been fixed in git, but isn't
> in a release yet.
>
>
From: Luke Shumaker
I managed to stumble across a bug in BATS where the run() function
screwed with the global IFS. The bug has been fixed in git, but isn't
in a release yet.
https://github.com/sstephenson/bats/issues/89
Anyway, this bug breaks __getCheckSum().
From: Luke Shumaker
These are a few minor unrelated touch-ups that I noticed when doing
the PKGEXT work. There's no real theme to them.
Luke Shumaker (3):
test: common.bash:__getCheckSum: Don't rely on IFS
test: Fixup glob matching
Update messages to make fuller use
From: Luke Shumaker
- ftpdir-cleanup.bats: Glob expansion does not occur in [[ -f ]] tests.
The [[ ! -f .../${pkgname}-*${PKGEXT} ]] checks were checking that there
were no files containing a literal '*' for that part of their name.
Obviously, this isn't what was
From: Luke Shumaker
These are things that were (IMO) missed in 5afac1e. I found them using:
git ls-files|xargs grep -E '(plain|msg|msg2|warning|error|die) "[^"]*\$'
I went a little above-and-beyond for escaping strings for the error
messages in db-functions'
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Official repo DB scripts".
The branch, master has been updated
via e53cad6e4a8284165c6d0b2c7c86f6c077be693b (commit)
via
19 matches
Mail list logo