Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feat: Added Alpha .deb support using wget and awk#93

Merged
Elsie19 merged 10 commits into
pacstall:developfrom
0oAstro:develop
Jul 11, 2021
Merged

Feat: Added Alpha .deb support using wget and awk#93
Elsie19 merged 10 commits into
pacstall:developfrom
0oAstro:develop

Conversation

@0oAstro
Copy link
Copy Markdown
Member

@0oAstro 0oAstro commented Jun 25, 2021

Hey guys! I edited install-local script to support .deb packages, using wget and awk.

Related issues: #77

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 25, 2021

How would updating work?

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 25, 2021

Oh I would look further into updating the packages. I have a fix that we see changes in the version (mostly all deb packages have their version and a uniform way to name the package) and then we can wget the new package and apt install it. I will push update related changes by tomorrow 17:00 GMT

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 25, 2021

Most deb packages add online repository while installation which takes care of the update process and get updated during the system upgrade

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 25, 2021

I just looked at the update script. If I'm correct then, pacstall will compare the pkgver and do pacstall -I $package to update the packages, which in turn will install the new .deb package and apt will update the package (since application will be same). So AFAIK there's no need for any extra update script.

@wizard-28 wizard-28 added the enhancement New feature or request label Jun 25, 2021
@wizard-28 wizard-28 changed the title Added Alpha .deb support using wget and awk Feat: Added Alpha .deb support using wget and awk Jun 25, 2021
@0oAstro 0oAstro closed this Jun 26, 2021
@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 26, 2021

Hopefully I have resolved the conflicts

Yeah finally resolved conflicts.

@0oAstro 0oAstro reopened this Jun 26, 2021
@0oAstro 0oAstro closed this Jun 26, 2021
@0oAstro 0oAstro reopened this Jun 26, 2021
@wizard-28 wizard-28 requested review from Elsie19 and wizard-28 June 26, 2021 14:32
I was trying to cs into example.deb, which is impossible and is not what we want.
@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 26, 2021

@NarutoXy Have you actually tested this yet?

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 27, 2021

I haven't tested this 😅 on real hardware. My machine got destroyed last week and everything was needed to be wiped. So I'm currently setting up my machine.

But I believe that this will work as I have reviewed it multiple times and ran it in VM.

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 27, 2021

Fired a live Ubuntu ISO, installed brave deb package using pacstall. So, it should work

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 27, 2021

Could I see the pacscript?

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 27, 2021

name="brave-browser-beta"
pkgname="brave-browser-beta"
version="1.27.81"
url="https://github.com/brave/brave-browser/releases/download/v$version/brave-browser-beta_$version_amd64.deb"
build_depends=""
depends=""
gives="brave-browser-beta"
description="Brave Deb file for test (Alpha stage)"
breaks=""
hash="1ab2c6fd4092def53a0a25ac919d7311e4846059cbac38f8a962579ef8488592"

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 27, 2021

I just created one in hurry for test and it worked.

name="brave-browser-beta"
pkgname="brave-browser-beta"
version="1.27.81"
url="https://github.com/brave/brave-browser/releases/download/v1.27.81/brave-browser-beta_1.27.81_amd64.deb"
build_depends=""
depends=""
gives="brave-browser-beta"
description="Brave Deb file for test (Alpha stage)"
breaks=""

I just created this dummy pacscript for test, and it worked. But for the real pacscript (to be on GitHub) I need to use variables like $version in place of 1.27.81 in url

It needs a hash to work

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 29, 2021

Can you not use '&&' in the logging part?

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jun 29, 2021

I just used && but I can't understand what you mean. Please share the snippet or edit it.

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jun 29, 2021

Line 197

@Elsie19 Elsie19 linked an issue Jul 11, 2021 that may be closed by this pull request
Copy link
Copy Markdown
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.

Looks good, merging

@Elsie19 Elsie19 merged commit 6ff2142 into pacstall:develop Jul 11, 2021
@kaistian
Copy link
Copy Markdown
Contributor

Because nested if is not supported in shell scripts and it will cause many errors.

Where to you have that from?
Pacstall have several nested if and don't have any problem with it and it's even documented for bash https://tldp.org/LDP/abs/html/nestedifthen.html

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jul 11, 2021

Hey I mean nested if don't work when we have many different conditions to check. We are checking file type,then exit code then the variables for logging and this can't work. Moreover, there's no reason to figure out your way in multiple if statement if you can simply use function to use nested if.

Elsie19 added a commit that referenced this pull request Jul 11, 2021
Elsie19 added a commit that referenced this pull request Jul 11, 2021
@kaistian
Copy link
Copy Markdown
Contributor

There would be no conflict and nothing to figure out, just paste the code in instead of the function name like this

  elif [[ $url = *.deb ]]; then
    hashcheck "${url##*/}"
    fancy_message info "Installing"
    sudo apt-get install -f $(echo "$url" | awk -F "/" '{print $NF}') 2>/dev/null
    if [[ $? -eq 0 ]]; then
      echo "_version=\"$version"\" | sudo tee "$LOGDIR"/"$PACKAGE" > /dev/null
      echo "_description=\"$description"\" | sudo tee -a "$LOGDIR"/"$PACKAGE" > /dev/null
      echo "_date=\"$(date)"\" | sudo tee -a "$LOGDIR"/"$PACKAGE" > /dev/null
      if [[ $removescript == "yes" ]]; then
        echo "_removescript=\"yes"\" | sudo tee -a "$LOGDIR"/"$PACKAGE" > /dev/null
      fi
      echo "_maintainer=\"$maintainer"\" | sudo tee -a "$LOGDIR"/"$PACKAGE" > /dev/null
    else
      fancy_message error "Failed to install the package"
    fi
  else

This is the same code as yours without functions.

That said the code doesn't work because

@Elsie19
Copy link
Copy Markdown
Member

Elsie19 commented Jul 11, 2021

I'll add an if statement detecting the url ending so it won't stow debs, but first @NarutoXy needs to fix the errors first

@0oAstro
Copy link
Copy Markdown
Member Author

0oAstro commented Jul 12, 2021

Pacstall now supports .deb files. #115

Elsie19 added a commit that referenced this pull request Jul 17, 2021
* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 84e9c7e was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 6ff2142.

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Elsie19 added a commit that referenced this pull request Jul 17, 2021
* Release Twilight (#123)

* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 84e9c7e was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 6ff2142.

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>

* `-C` -> `-A`

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Elsie19 added a commit that referenced this pull request Aug 13, 2021
* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>
Former-commit-id: 6ff2142
Elsie19 added a commit that referenced this pull request Aug 13, 2021
#107)

This reverts commit 7e2e69f [formerly 6ff2142].

Former-commit-id: 536accc
Elsie19 added a commit that referenced this pull request Aug 13, 2021
* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 1645da0 [formerly 84e9c7e] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 7e2e69f [formerly 6ff2142].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: 98de89f
Elsie19 added a commit that referenced this pull request Aug 13, 2021
* Release Twilight (#123)

* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 1645da0 [formerly 84e9c7e] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 7e2e69f [formerly 6ff2142].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>

* `-C` -> `-A`

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: b2d86dc
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>
Former-commit-id: 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]
Former-commit-id: 7e2e69f
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
#107)

This reverts commit 634db13 [formerly 7e2e69f] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

Former-commit-id: b9bab04e2f5eac2f3df17f9dd802caac4c055166 [formerly 536accc]
Former-commit-id: 7868299
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 90f7679 [formerly 1645da0] [formerly a5b2f9f687a03990ad41e447c91c0fac7376ad94 [formerly 84e9c7e]] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 634db13 [formerly 7e2e69f] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: d7ff1ae907c01572641ef06a05a05ae720c9dfcf [formerly 98de89f]
Former-commit-id: 3c4c37c
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Release Twilight (#123)

* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 90f7679 [formerly 1645da0] [formerly a5b2f9f687a03990ad41e447c91c0fac7376ad94 [formerly 84e9c7e]] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 634db13 [formerly 7e2e69f] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>

* `-C` -> `-A`

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: c5f06778df60cf050b6059315ae570de1d92b77a [formerly b2d86dc]
Former-commit-id: 04ee8c9
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>
Former-commit-id: 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]
Former-commit-id: edb7860 [formerly 7e2e69f]
Former-commit-id: 634db13
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
#107)

This reverts commit 5eaadd1 [formerly 634db13] [formerly edb7860 [formerly 7e2e69f]] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

Former-commit-id: b9bab04e2f5eac2f3df17f9dd802caac4c055166 [formerly 536accc]
Former-commit-id: c629612 [formerly 7868299]
Former-commit-id: a456ad6
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 1e9d3e5 [formerly 90f7679] [formerly ce62f87 [formerly 1645da0]] [formerly a5b2f9f687a03990ad41e447c91c0fac7376ad94 [formerly 84e9c7e]] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 5eaadd1 [formerly 634db13] [formerly edb7860 [formerly 7e2e69f]] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: d7ff1ae907c01572641ef06a05a05ae720c9dfcf [formerly 98de89f]
Former-commit-id: ca138cd [formerly 3c4c37c]
Former-commit-id: 59188c7
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Release Twilight (#123)

* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit 1e9d3e5 [formerly 90f7679] [formerly ce62f87 [formerly 1645da0]] [formerly a5b2f9f687a03990ad41e447c91c0fac7376ad94 [formerly 84e9c7e]] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit 5eaadd1 [formerly 634db13] [formerly edb7860 [formerly 7e2e69f]] [formerly 414eab3e17d229f5612ca51e7a788cc8554bca13 [formerly 6ff2142]].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>

* `-C` -> `-A`

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: c5f06778df60cf050b6059315ae570de1d92b77a [formerly b2d86dc]
Former-commit-id: 4802dfb [formerly 04ee8c9]
Former-commit-id: 1ef6233
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>
Former-commit-id: 6ff2142
Former-commit-id: 7e2e69f
D-Brox pushed a commit that referenced this pull request Mar 1, 2023
#107)

This reverts commit edb7860 [formerly 7e2e69f] [formerly 6ff2142].

Former-commit-id: 536accc
Former-commit-id: 7868299
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit ce62f87 [formerly 1645da0] [formerly 84e9c7e] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit edb7860 [formerly 7e2e69f] [formerly 6ff2142].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: 98de89f
Former-commit-id: 3c4c37c
D-Brox added a commit that referenced this pull request Mar 1, 2023
* Release Twilight (#123)

* Fix: Remove typo (#80)

* Fix: Typo in docs (#84)

* Chan: Switch to LiberaPay

* Chan: Funding link

* Fix: Upgrading echo's packages at wrong time (#87)

When running `sudo pacstall -Up`, pacstall will output something like
this:

```bash
➜  ~ sudo pacstall -Up
[+] INFO: Checking for updates
*exa
.neofetch
@
[+] INFO: Packages can be upgraded
Upgradable: 2
exa neofetch

Do you want to continue? [Y/n] n
```
This commit removes the text below `Checking for updates`

* Fix: 404 on gif (#88)

* Feat: Cleanup (#85)

* Fix: Add `function` keyword

* Fix: Spacing

* Fix: More spacing

* Chan: Add exit codes

* Chan: Cleanup `pacstall`

* Fix: Typo

Chan: `yonking` -> `yoinking`

* Sug: Fix: Spacing

* Chan: Fix spacing for good

* Chan: Stuff

* Chan: Move all major commands to scripts

* Chan: chmod +x scripts

* Fix: fix references

* Fix: fix more references

* Fix: Refactor references

* Fix: Cleanup `change-repo.sh`

* Chan: Cleanup `download.sh`

Co-authored-by: Henry <[email protected]>

* Feat: Add global constants (#89)

* Fix: Typo

`exprot` -> `export`

* Fix: Change log references (#92)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Fix: help works again (#95)

* Feat: Add color output to `-Qi` (#94)

* Feat: -Qi has color

* Fix: query-info colors work

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: suffix issue (#97)

When commit ce62f87 [formerly 1645da0] [formerly 84e9c7e] was introduced, it
created a problem with tab completing scripts and issues with how
pacstall works when installing. How it works is if you have package
`foo`, the file will be `foo.pacscript` and you run `pacstall -Il foo`
to install it, but this commit changed it so that you would have to
include the `.pacscript`, so I fixed it

* Exit pacstall when apt fails & print error message

* Feat: Add docs (#98)

* Fix: spacing

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Fix: typo

I’m breaking git flow, but hey, I’m in a car on my phone, so…

* Fix: ppa will log and show with `-Qi` (#102)

* Feat: Move scripts to home dir (#101)

* Feat: Change the workflow to also test for installing a package (neof… (#103)

* Feat: Change the workflow to also test for installing a package (neofetch)

* Fix: update script to work without sudo

* Fix: update script to work without sudo

* Fix: made an oopsy, but fixed now (#104)

* Fix: added thingy I shouldn't have

* Feat: remove removescript variable (#105)

* Feat: no need for removescript variable

* Fix: stupid bugs

* Fix: missing equals

Co-authored-by: Sourajyoti Basak <[email protected]>

* Fix: /root is not /home/root (#106)

* Fix: /root is not /home/root

* Fix: remove HOMEDIR because redundant

* Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

Co-authored-by: The TwilightBlood <[email protected]>

* Revert "Feat: Added Alpha `.deb` support using `wget` and `awk` (#93)" (#107)

This reverts commit edb7860 [formerly 7e2e69f] [formerly 6ff2142].

* bash doesn't do tilde expansion in quotes (#108)

* Feat: cleanup installer (#109)

* Fix: pacstall tried to create /.cache (#110)

* Fix: pacstall will force stop running as root (#111)

* Fix: install script won't install files with root (#113)

* Fix: install script adding files as root

* Fix: capitalize output (#114)

* Typo

* Fcking typos

* Fix exit codes

* Fix typos (#115)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

Co-authored-by: The TwilightBlood <[email protected]>

* case

* ```case``` instead of ```if``` (#116)

* Added support for .deb files after resolving the conflicts

* Added metadata

* Forgot that you can't cd into ```.deb``` files

I was trying to cs into example.deb, which is impossible and is not what we want.

* Exit pacstall when apt fails & print error message

* A possible fix

* Wrapping in functions

* Update install-local.sh

* Typo

* Fcking typos

* Fix exit codes

* case

Co-authored-by: The TwilightBlood <[email protected]>

* Fix: root stuff

* The remove doesn't work (#117)

* Stow don't remove links because of missing target

* Fix so the removescript doesn't always run.

* apt works

* Chan: Remove docs directory

* Feat: optdepends output sounds less like windows update (#118)

* Fix: spacing (#119)

* Feat: Multi-repo support (#120)

* Search script for multiple repos

* Add doc and other small fixes

* add-repo.sh base + small fixes

* Update main script and small fixes

* Fixes

* Multi-repo support on `-Up`

* Add URL  add-repo.sh

* I forgot one single `!` and it broke everything

* Multi-repo support

* Fix add-repo.sh problems

* Fix logging

* Remove testing `echo`s

* Add remote repo info to the query

* Final fixes

* Remove capitalization on query

* Fixes from CodeFactor

* Fix search.sh + small fixes

* Codacy fixes

* Fixes

* More fixes

* Fix install for multiple results

* Add warning message for non github/gitlab repos

* Remove `sudo` for writing pacstallrepo.txt

* Fix `-D` and logging

* Fix update.sh

* Prettify remoterepo log

* Codacy fixes

* Use aria2c and loggingMeta

* Use aria2c if it's available
* Use logging Meta to reduce SLOC

* Remove apt not having stable interface warning

* Remove deb files

* Fix logging of branch

It doesn't log the branch variable if repo is not from github or gitlab

* Update install-local.sh

* Prbbly fix hash

* Remove hashcheck to see what causing error

* Update install-local.sh

* Update install-local.sh

* Update aria2 flags

* Update aria2

* Fix search showing help when no result is found

* Update install-local.sh

* Rel: Bump version (#122)

* Rel: Bump version

* Fix: outdated man page

* Fix: outdated man page

Co-authored-by: D Brox <[email protected]>

* Fix: manpage version

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>

* `-C` -> `-A`

Co-authored-by: Sourajyoti Basak <[email protected]>
Co-authored-by: Hunter Wittenborn <[email protected]>
Co-authored-by: codersps <[email protected]>
Co-authored-by: NarutoXY <[email protected]>
Co-authored-by: Kai Stian Olstad <[email protected]>
Co-authored-by: D Brox <[email protected]>
Former-commit-id: b2d86dc
Former-commit-id: 04ee8c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add .deb support in pacstall

4 participants