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

feat: support for local repos #601

Merged
merged 37 commits into from
Jul 8, 2022
Merged

Conversation

D-Brox
Copy link
Contributor

@D-Brox D-Brox commented Jun 12, 2022

Purpose

Add support for locally hosted repos

Approach

Use curl instead of wget due to it's file:// protocol support. Format path in add-repo when adding local repos.

Checklist

  • I confirm that I have read the contributing guidelines, and this pull request is abiding by all the clauses stated in the guideline.

Copy link
Member

@Elsie19 Elsie19 left a comment

Choose a reason for hiding this comment

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

If a secondary repo is misconfigured, operations like install and download fail.

Make sure to allow properly configured repos to work even if a misconfigured one exists. Add a warning about the misconfigured one

pacstall Outdated Show resolved Hide resolved
@Elsie19 Elsie19 changed the title Feat: support for local repos feat: support for local repos Jun 15, 2022
Copy link
Member

@Elsie19 Elsie19 left a comment

Choose a reason for hiding this comment

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

image

@Elsie19 Elsie19 changed the title feat: support for local repos feat!: support for local repos Jun 18, 2022
misc/scripts/search.sh Outdated Show resolved Hide resolved
Copy link
Member

@Elsie19 Elsie19 left a comment

Choose a reason for hiding this comment

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

image
The showed text for local repos should be something like /home/henry/local-repo-pacstall-test, instead of having the file:// in front of it

Copy link
Member

@Elsie19 Elsie19 left a comment

Choose a reason for hiding this comment

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

image
This @ should not be the same color as the repo

misc/scripts/download.sh Outdated Show resolved Hide resolved
Copy link
Member

@Elsie19 Elsie19 left a comment

Choose a reason for hiding this comment

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

image
Yet the repo does exist. This error also happens with URLs as well

misc/scripts/add-repo.sh Outdated Show resolved Hide resolved
misc/scripts/download.sh Outdated Show resolved Hide resolved
D-Brox and others added 2 commits June 29, 2022 11:07
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
@D-Brox D-Brox requested a review from wizard-28 June 29, 2022 14:08
pacstall Outdated Show resolved Hide resolved
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
@D-Brox D-Brox requested a review from wizard-28 July 2, 2022 20:09
Copy link
Member

@wizard-28 wizard-28 left a comment

Choose a reason for hiding this comment

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

If the repository is deleted without prior removal from the repolist, then it should warn the user about it, in all commands related to the package repos

It doesn't do that currently

@D-Brox D-Brox requested a review from wizard-28 July 4, 2022 17:46
Copy link
Member

@wizard-28 wizard-28 left a comment

Choose a reason for hiding this comment

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

~ expansion doesn't work

20220706_190753-1.jpg

@D-Brox D-Brox requested a review from wizard-28 July 6, 2022 15:00
Copy link
Member

@wizard-28 wizard-28 left a comment

Choose a reason for hiding this comment

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

  1. Fix the sed error

  2. Link up the blue path to pacstallrepo.txt so that people can open that file by clicking the link on supported terminals

oQDc.png

@D-Brox D-Brox requested a review from wizard-28 July 8, 2022 17:28
@Elsie19 Elsie19 merged commit c996540 into pacstall:develop Jul 8, 2022
@D-Brox D-Brox changed the title feat!: support for local repos feat: support for local repos Jul 8, 2022
@D-Brox D-Brox deleted the feat/local-repos branch August 22, 2022 21:54
D-Brox added a commit that referenced this pull request Mar 1, 2023
* feat(scripts): local repo support

* feat(add-repo): format local repo

* fix(add-repo): hide curl test output

* fix(add-repo): hide curl test output again

* fix(add-repo): Add success message

* fix(main): url check on local file

* fix(main): missing `;`

* fix(download): curl output to file

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat(search): add `file://` and warning

* fix(search,main): error/warn messages

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix(search): add path cases

* fix(search): replace backticks

* fix(search): replace single quotes

* fix(search): local repo formatting

* sty(search): change color of `@`

* Update misc/scripts/download.sh

Co-authored-by: Plasma <hwengerstickel@protonmail.com>

* fix(search): specifyRepo path formatting

* fix(search): rework path parsing

* style(search): add missing space

Co-authored-by: Plasma <hwengerstickel@protonmail.com>

* fix(search): add missing `*`

* fix(search): readlink doesn't replace `~/`

* fix(search): add missing `*`, again

* chore(misc): pre-commit hooks

* fix(add-repo): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(download): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(search): `file://` check before github/gitlab

* fix(main): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(main): check file and return false

* fix(search): warn ask once

* fix(search): extra replace $HOME case

* feat(search): link `repolist.txt` on supported terminals

* fix(search): suppress sed error

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Plasma <hwengerstickel@protonmail.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
Former-commit-id: c996540
D-Brox added a commit to D-Brox/pacstall that referenced this pull request Mar 1, 2023
* feat(scripts): local repo support

* feat(add-repo): format local repo

* fix(add-repo): hide curl test output

* fix(add-repo): hide curl test output again

* fix(add-repo): Add success message

* fix(main): url check on local file

* fix(main): missing `;`

* fix(download): curl output to file

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* feat(search): add `file://` and warning

* fix(search,main): error/warn messages

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix(search): add path cases

* fix(search): replace backticks

* fix(search): replace single quotes

* fix(search): local repo formatting

* sty(search): change color of `@`

* Update misc/scripts/download.sh

Co-authored-by: Plasma <hwengerstickel@protonmail.com>

* fix(search): specifyRepo path formatting

* fix(search): rework path parsing

* style(search): add missing space

Co-authored-by: Plasma <hwengerstickel@protonmail.com>

* fix(search): add missing `*`

* fix(search): readlink doesn't replace `~/`

* fix(search): add missing `*`, again

* chore(misc): pre-commit hooks

* fix(add-repo): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(download): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(search): `file://` check before github/gitlab

* fix(main): follow redirects

Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>

* fix(main): check file and return false

* fix(search): warn ask once

* fix(search): extra replace $HOME case

* feat(search): link `repolist.txt` on supported terminals

* fix(search): suppress sed error

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Plasma <hwengerstickel@protonmail.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
Former-commit-id: ef6727c186442186313a6b5f48ecf4eb7a732d98 [formerly c996540]
Former-commit-id: 1ccce06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bash For the bash version of Pacstall enhancement New feature or request release notes Something that is or should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants