File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 33 workflow_dispatch :
44 inputs :
55 reponame :
6- type : text
6+ type : string
77 required : true
88 newrelease :
9- type : text
9+ type : string
1010 required : true
1111jobs :
1212 verify :
@@ -27,23 +27,23 @@ jobs:
2727 GITHUB_TOKEN : ${{ github.token }}
2828 REPONAME : ${{ inputs.reponame }}
2929 NEWRELEASE : https://github.com/${{ github.repository }}/releases/download/${{ inputs.newrelease }}
30- shell : python -u {0}
30+ shell : python
3131 run : |
3232 import os
3333 import pacdb
34- import sys
3534 repo = pacdb.Database.from_url (os.environ['REPONAME'], os.environ['NEWRELEASE'])
36- repofiles = {pkg.filename.replace('~', '.') for pkg in repo}
35+ repofiles = {pkg.filename for pkg in repo}
3736 repofiles.update ({f+".sig" for f in repofiles})
38- repofiles.update ({ os.environ['REPONAME']+".db", os.environ['REPONAME']+".db.sig"} )
37+ repofiles.add ( os.environ['REPONAME']+".db")
3938 with open ("existing.txt", "r") as fh:
4039 releasefiles = {l.strip() for l in fh.readlines ()}
4140
4241 missingfiles = repofiles - releasefiles
42+ repofiles.add(os.environ['REPONAME']+".db.sig")
4343 extrafiles = releasefiles - repofiles
4444 if missingfiles:
4545 print(f"::error title=Missing files in release {os.environ['NEWRELEASE'].rsplit('/', 1)[1]}::{", ".join(missingfiles)}")
4646 if extrafiles:
4747 print(f"::error title=Extra files in release {os.environ['NEWRELEASE'].rsplit('/', 1)[1]}::{", ".join(extrafiles)}")
4848 if missingfiles or extrafiles:
49- sys. exit(1)
49+ exit(1)
You can’t perform that action at this time.
0 commit comments