Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug]: fail to evaluate url properly #212

Open
Zahrun opened this issue Sep 8, 2023 · 0 comments
Open

[Bug]: fail to evaluate url properly #212

Zahrun opened this issue Sep 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working triage Priority not decided yet

Comments

@Zahrun
Copy link
Contributor

Zahrun commented Sep 8, 2023

What happened?

If url is determined by a variable that is derived from pkgver, pacup fails to download the updated url and to calculate the new hash.

What do you expect to happen?

Updated url is evaluated properly.

Which pacscripts are affected?

rstudio-deb

pkgver="2023.06.1.524"
ver="${pkgver:0:9}-${pkgver:10}"
url="https://download1.rstudio.org/electron/jammy/amd64/rstudio-${ver}-amd64.deb"

Steps to reproduce

pacup --ship rstudio-deb/rstudio-deb.pacscript

Version

Latest Release

Relevant log output

[09/08/23 10:24:40] INFO     PacUp 2.1.0 Dagon                                                 __main__.py:326
                    INFO     Parsing 1 pacscripts                                              __main__.py:337
                    INFO     Parsing rstudio-deb.pacscript...                                    parser.py:214
                    INFO     Sourcing rstudio-deb.pacscript...                                   parser.py:234
                    INFO     Found repology: repology=("project: ${gives}")                      parser.py:289
                    DEBUG    repology_filters = {'project': 'rstudio'}                           parser.py:302
                    INFO     Found version: pkgver="2023.06.1.524"                               parser.py:250
                    INFO     Found url:                                                          parser.py:264
                             url="https://download1.rstudio.org/electron/jammy/amd64/rstudio-${v              
                             er}-amd64.deb"                                                                   
                    INFO     Found hash:                                                         parser.py:277
                             hash="c030ec8338f1c76b3ae27997ec4411a0af43b2367dedb3d48e95c319b5425              
                             698"                                                                             
                    INFO     Found maintainer: maintainer="Zahrun <Zahrun@github.com>"           parser.py:281
                    INFO     Getting project info from repology...                              version.py:127
[09/08/23 10:24:41] INFO     Filtering...                                                       version.py:160
                    INFO     Mapping the versions to their filtered packages...                 version.py:170
                    DEBUG    filtered = [{'repo': 'aur', 'srcname': 'rstudio-desktop',          version.py:173
                             'binname': 'rstudio-desktop', 'visiblename': 'rstudio-desktop',                  
                             'version': '2023.06.2.561', 'maintainers': ['trap000d@aur'],                     
                             'licenses': ['AGPL3'], 'summary': 'A powerful and productive                     
                             integrated development environment (IDE) for R programming                       
                             language', 'status': 'newest', 'origversion': '2023.06.2.561-3'},                
                             {'repo': 'pclinuxos', 'srcname': 'rstudio', 'visiblename':                       
                             'rstudio', 'version': '2023.06.2.561', 'summary': 'RStudio IDE is                
                             a powerful and productive user interface for R', 'categories':                   
                             ['Sciences/Mathematics'], 'status': 'newest', 'origversion':                     
                             '2023.06.2.561-1pclos2023'}, {'repo': 'scoop', 'subrepo':                        
                             'extras', 'binname': 'rstudio', 'visiblename': 'rstudio',                        
                             'version': '2023.06.2-561', 'licenses': ['AGPL-3.0-only'],                       
                             'status': 'newest', 'origversion': None}, {'repo': 'slackbuilds',                
                             'srcname': 'development/rstudio-desktop', 'visiblename':                         
                             'development/rstudio-desktop', 'version': '2023.06.2+561',                       
                             'maintainers': ['slackalaxy@gmail.com'], 'categories':                           
                             ['development'], 'status': 'newest', 'origversion': None},                       
                             {'repo': 'winget', 'srcname': 'p/Posit/RStudio', 'visiblename':                  
                             'RStudio', 'version': '2023.06.2+561', 'categories': ['ide'],                    
                             'status': 'newest', 'origversion': None}]                                        
                    DEBUG    versions = ['2023.06.2.561', '2023.06.2.561', '2023.06.2-561',     version.py:174
                             '2023.06.2+561', '2023.06.2+561']                                                
                    INFO     Selecting most common version...                                   version.py:176
                    DEBUG    selected_version = '2023.06.2.561'                                 version.py:178
                    INFO     Fetching release notes...                                           parser.py:312
                    DEBUG    parsed_pacscripts = [Pacscript(name=rstudio-deb.pacscript,        __main__.py:347
                             pkgname=rstudio, pkgver=Version(line_number=3,                                   
                             current=2023.06.1.524, latest=2023.06.2.561,                                     
                             status=VersionStatuses.OUTDATED), url=Url(line_number=5,                         
                             value=https://download1.rstudio.org/electron/jammy/amd64/rstudio-                
                             2023.06.1-524-amd64.deb), hash_line=7, maintainer='Zahrun                        
                             <Zahrun@github.com>' repology_filters={'status': 'newest'})]                     
                    INFO     Sorting parsed pacscripts by version statsuses...                 __main__.py:351
                    DEBUG    oudated pacscripts = ['rstudio-deb']                              __main__.py:369
                    DEBUG    up-to-date pacscripts = []                                        __main__.py:372
                    DEBUG    newer pacscripts = []                                             __main__.py:375
                    DEBUG    unknown pacscripts = []                                           __main__.py:378
                    INFO     Adding outdated pacscripts to version statuses...                 __main__.py:383
╭───────────────────────────── Version statuses ──────────────────────────────╮
│ ╭─────────────────────────────── Outdated ────────────────────────────────╮ │
│ │   Pacscript         Current         Latest          Maintainer          │ │
│ │  rstudio-deb  2023.06.1.524  2023.06.2.561  Zahrun <Zahrun@github.com>  │ │
│ ╰─────────────────────────────────────────────────────────────────────────╯ │
╰─────────────────────────────────────────────────────────────────────────────╯
                    INFO     Updating pacscripts...                                            __main__.py:479
=> Updating rstudio-deb pacscript (2023.06.1.524 => 2023.06.2.561)
      ❌ Could not find release notes
                    INFO     Downloading new package...
@Zahrun Zahrun added bug Something isn't working triage Priority not decided yet labels Sep 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage Priority not decided yet
Projects
None yet
Development

No branches or pull requests

2 participants