Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added automatic version fetching for ubuntu #821

Merged
merged 7 commits into from
Nov 16, 2023

Conversation

Jai-JAP
Copy link
Contributor

@Jai-JAP Jai-JAP commented Oct 24, 2023

@philclifford
Copy link
Contributor

Excellent!

One tweak though - jammy-daily is not quite obsolete :

https://cdimage.ubuntu.com/jammy/daily-live/current/
https://iso.qa.ubuntu.com/qatracker/milestones/429/builds

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Oct 24, 2023

Excellent!

One tweak though - jammy-daily is not quite obsolete :

https://cdimage.ubuntu.com/jammy/daily-live/current/
https://iso.qa.ubuntu.com/qatracker/milestones/429/builds

I'll fix that soon.

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Oct 24, 2023

jammy-daily should be back working now

@philclifford
Copy link
Contributor

Thanks

Copy link
Member

@flexiondotorg flexiondotorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can not accept pull requests that change the indentation project wide.

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Nov 9, 2023

I can not accept pull requests that change the indentation project wide.

I will fix that soon. Will reverting to indent_size 2 be sufficient?

@flexiondotorg
Copy link
Member

This patch is massive:

image

Please refactor this pull request to only provide the changes to add automatic version fetching for Ubuntu and remove all whitespace-related changes.

@flexiondotorg flexiondotorg marked this pull request as draft November 10, 2023 10:29
@Jai-JAP Jai-JAP force-pushed the master branch 2 times, most recently from 23236f8 to 5a18c07 Compare November 10, 2023 19:18
@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Nov 10, 2023

@flexiondotorg ig the changes you requested are resolved.

@flexiondotorg flexiondotorg marked this pull request as ready for review November 12, 2023 17:20
Copy link
Contributor

@philclifford philclifford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purely-whitespace changes would be better dealt with in another (possibly existing) PR. (But at least now they are restricted to a couple of functions. - this is not a show-stopper for me but ...)

The results do not correctly align with the available releases so there is either a flaw in the logic or in what the api presents.
Some examples below (./quickget is the PR version) showing missing 23.10 interims , missing jammy-daily options and non-existent early releases.

$
$quickget ubuntu-unity
ERROR! You must specify a release.
 - Releases: 23.04 23.10 daily-live daily-canary
$./quickget ubuntu-unity
ERROR! You must specify a release.
 - Releases: 23.04 daily-live
$quickget xubuntu
ERROR! You must specify a release.
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
$./quickget xubuntu
ERROR! You must specify a release.
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
$quickget ubuntucinnamon
ERROR! You must specify a release.
 - Releases: 23.04 23.10 daily-live daily-canary
$./quickget ubuntucinnamon
ERROR! You must specify a release.
 - Releases: 23.04 daily-live
$quickget ubuntu-server
ERROR! You must specify a release.
 - Releases: 18.04 20.04 22.04 23.04 23.10 daily-live
$./quickget ubuntu-server
ERROR! You must specify a release.
 - Releases: 18.04 20.04 22.04 23.04 23.10 daily-live
$quickget ubuntu
ERROR! You must specify a release.
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy    
$./quickget ubuntu
ERROR! You must specify a release.
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy                                                                     
$quickget ubuntu-mate
ERROR! You must specify a release.
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
$./quickget ubuntu-mate
ERROR! You must specify a release.
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily         

quickget Outdated
@@ -1659,13 +1638,13 @@ function get_manjaro() {
[[ ${RELEASE} != "sway" ]] && MANIFEST="$(wget -qO- https://gitlab.manjaro.org/web/iso-info/-/raw/master/file-info.json)"

[[ ${EDITION} == "minimal" && ${TYPE} != "sway" ]] && EDITION=".minimal" || EDITION=""

if [[ ${RELEASE} != "sway" ]]; then

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be changing vanillaos or other non-ubuntu functions in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be changing vanillaos or other non-ubuntu functions in this PR

I didn't make any manual changes here. Maybe editorconfig automatically removing trailing whitespaces.

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Nov 13, 2023

The results do not correctly align with the available releases so there is either a flaw in the logic or in what the api presents.

I'll fix that soon. Caught the cause of it.

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Nov 14, 2023

@philclifford Everything should be working fine now. Can you test again?

@philclifford
Copy link
Contributor

@philclifford Everything should be working fine now. Can you test again?

Looks to be sorted, thanks @Jai-JAP. My local version of your PR may be missing full edubuntu support from the fix in #819, but I believe that won't be an issue. The following seems to be consistent with current reality, and hopefully the use of the api now means we will have a smoother maintenance flow in future.

for os in edubuntu kubuntu lubuntu ubuntu ubuntu-budgie ubuntucinnamon ubuntukylin ubuntu-mate ubuntu-server ubuntustudio ubuntu-unity xubuntu; do echo $os ; echo Upstream ;quickget $os;echo PR; ./quickget $os; done |grep -v ERROR
edubuntu
Upstream
 - Releases: 23.04 23.10 daily-live daily-canary
PR
[ Error: not a supported os ... probably missing #819 ]

kubuntu
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
lubuntu
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
ubuntu
Upstream
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 14.04 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy                                
ubuntu-budgie
Upstream
 - Releases: 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
ubuntucinnamon
Upstream
 - Releases: 23.04 23.10 daily-live daily-canary
PR
 - Releases: 23.04 23.10 daily-live
ubuntukylin
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
ubuntu-mate
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
ubuntu-server
Upstream
 - Releases: 18.04 20.04 22.04 23.04 23.10 daily-live
PR
 - Releases: 18.04 20.04 22.04 23.04 23.10 daily-live
ubuntustudio
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily                                
ubuntu-unity
Upstream
 - Releases: 23.04 23.10 daily-live daily-canary
PR
 - Releases: 23.04 23.10 daily-live
xubuntu
Upstream
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 jammy-daily daily-live daily-canary daily-legacy                                                                        
PR
 - Releases: 16.04 18.04 20.04 22.04 23.04 23.10 daily-live daily-legacy jammy-daily  

@Jai-JAP
Copy link
Contributor Author

Jai-JAP commented Nov 15, 2023

@philclifford Edubuntu is fixed now.

 - Remove obsolete daily-legacy
 - Add error if desktop amd64 build do not exist as in current status
@flexiondotorg flexiondotorg merged commit 7a724e4 into quickemu-project:master Nov 16, 2023
chasecovello pushed a commit to chasecovello/quickemu that referenced this pull request Apr 3, 2024
* Automatic fetching of ubuntu versions

* Fix displaying ubuntu versions

* Update quickget

* Updated quickget

 - Remove obsolete daily-legacy
 - Add error if desktop amd64 build do not exist as in current status

* Allow 'daily' as a valid release for ubuntu family

* Better logic to fetch Ubuntu-server & failsafe
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.

3 participants