WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: incomplete tags.db.gz in x86_64 repositories  (Read 2410 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
incomplete tags.db.gz in x86_64 repositories
« on: January 18, 2024, 12:59:14 PM »
I noticed that some extensions that are present in the TCL14 x86_64 and TCL15 x86_64 repositories are not present in repo's tags.db.gz.

apulse.tcz and xscreensaver.tcz, for example, exist in the repository but are not represented in tags.db.gz. Maybe there is a bug in the script that generates tags.db.gz?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #1 on: January 18, 2024, 01:38:21 PM »
Hi GNUser
... apulse.tcz and xscreensaver.tcz, for example, exist in the repository but are not represented in tags.db.gz. ...
They also were not showing up in the  Apps  utility. The problem was
the  .tcz.info  files contained a field called  Tags  instead of  Tags:

Both repos have been fixed.

Thank you for reporting this.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #2 on: January 18, 2024, 01:49:05 PM »
Hi Rich. Thanks for investigating. Now that you discovered the cause, I was able to search for other affected extensions.

Code: [Select]
$ grep -E 'Tags[^:]' *.info
apulse.tcz.info:Tags            alsa
pixiewps-doc.tcz.info:Tags : wifi hacking doc
pixiewps.tcz.info:Tags : wifi hacking
xscreensaver.tcz.info:Tags            screensavers screen lock I found two more

So pixiewps.tcz and pixiewps-doc.tcz are also missing from tags.db.gz and therefore do not appear when a user searches for "pixie" using tce or Apps.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #3 on: January 18, 2024, 03:57:56 PM »
Hi GNUser
It seems most of the fields were messed up in those two:
Code: [Select]
Title: pixiewps.tcz
Version : 1.4.2
Size: 60K
Extension-by : Sashank999
Tags : wifi hacking
Author : See below
Original-site : See below
Copying-policy : See below
Description : pixiewps is used to hack WPS Wi-Fi networks
--------------------------
This extension contains :
pixiewps - GPLv3 - https://github.com/wiire-a/pixiewps
Comments : None
Current : first Version
Change-log : 2020/06/27

TC11 x86_64 through TC15 x86_64 repos updated.

Thank you for reporting this.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #4 on: January 18, 2024, 03:58:39 PM »
submitqc currently does not check for the existence of a Tags: field in the .info file. It should check for it, though, because an extension in the repo doesn't do much good if users can't find it.

I'll add this check to submitqc when I get a chance.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #5 on: January 18, 2024, 04:02:26 PM »
Thank you for reporting this.
You're welcome. I love TCL and want it to be as good as possible :)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #6 on: January 19, 2024, 12:53:52 PM »
It's probably a glitch in the script or something.
Hi inouye1. It was not a glitch in any script. The problem was in the .info file of the affected extensions. Rich already fixed everything in the TCL repository.

I'll add this check to submitqc when I get a chance.
I took care of this. submitqc was already checking that a field named "Tags" exists in the .info file. I made it more specific, so that now it checks for "Tags:" instead.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #7 on: January 25, 2024, 12:28:01 PM »
Hi Rich. Today when I searched for "submitqc" using tce or Apps I was surprised to get two hits (there should only be one hit, of course).

The script that generates tags.db.gz must be getting confused by this line in submitqc.tcz.info:
Code: [Select]
Current:        2024/01/18 check for "Tags:" field in .info file, add --no-load option (gnuser)
Can you please change the offending line to simply this:
Code: [Select]
Current:        2024/01/18 minor improvements (gnuser)
and recreate tags.db.gz in the affected repositories?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #8 on: January 25, 2024, 12:36:09 PM »
It's like "Goldilocks and the Three Bears". Zero appearances of Tags: in a .info file is too few. Two appearances is too many. One is just right :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #9 on: January 25, 2024, 12:40:20 PM »
Hi GNUser
I changed this:
Code: [Select]
Current:        2024/01/18 check for "Tags:" field in .info file, add --no-load option (gnuser)to this:
Code: [Select]
Current:        2024/01/18 check for "Tags" field in .info file, add --no-load option (gnuser)and updated the TC15 x86_64 repo. Please check if that fixed the issue.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #10 on: January 25, 2024, 12:47:46 PM »
Hi Rich. Yes, that fixes the issue.

But, technically speaking, submitqc was already checking for "Tags" before this latest update. If you want a more informative "Current" field (rather than my terse "minor improvements"), I would prefer this:
Code: [Select]
Current:        2024/01/18 refined check for "Tags" field in .info file, add --no-load option (gnuser)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #11 on: January 25, 2024, 12:51:32 PM »
Hi GNUser
Sure, I'll do that.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #12 on: January 25, 2024, 12:56:30 PM »
Hi GNUser
x86 and x86_64 updated.  :)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: incomplete tags.db.gz in x86_64 repositories
« Reply #13 on: January 25, 2024, 12:56:51 PM »
Looks great now, and no more duplicates. Thanks a lot!