Skip to content

tools/mkrelease: fix bug in AWK helpers - #13847

Merged
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/fix_minor_mkrelease_bug
May 23, 2025
Merged

tools/mkrelease: fix bug in AWK helpers#13847
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/fix_minor_mkrelease_bug

Conversation

@benoit-pierre

@benoit-pierre benoit-pierre commented May 23, 2025

Copy link
Copy Markdown
Member

The manifest entry for koreader/frontend/socketutil.lua is wrong:

koreader/frontend/socketutil.lua/

That's because the CRC for that file (0E376639) compare as a false value when used conditionally with if (0E376639). The correct way to check for an empty string is to use: if (0E376639 != "").

NOTE: no impact that I could see on the actual generated archive, e.g.
for kindlepw2: the file is still included.


This change is Reviewable

The manifest entry for `koreader/frontend/socketutil.lua` is wrong:
```
koreader/frontend/socketutil.lua/
```
That's because the CRC for that file (0E376639) compare as a false value
when used conditionally with `if (0E376639)`. The correct way to check
for an empty string is to use: `if (0E376639 != "")`.

NOTE: no impact that I could see on the actual generated archive, e.g.
for kindlepw2: the file is still included.
@Frenzie
Frenzie merged commit 14ddbbf into koreader:master May 23, 2025
@Frenzie Frenzie added this to the 2025.05 milestone May 23, 2025
@benoit-pierre
benoit-pierre deleted the pr/fix_minor_mkrelease_bug branch May 23, 2025 22:57
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
The manifest entry for `koreader/frontend/socketutil.lua` is wrong:
```
koreader/frontend/socketutil.lua/
```
That's because the CRC for that file (0E376639) compare as a false value
when used conditionally with `if (0E376639)`. The correct way to check
for an empty string is to use: `if (0E376639 != "")`.

NOTE: no impact that I could see on the actual generated archive, e.g.
for kindlepw2: the file is still included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants