You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update is a quality of life update focusing on important bug fixes and adding requested features. Users can update from Pacstall 3.0.0 or higher with pacstall -U pacstall:master, or reinstall using the deb file.
Replace install() with package() in your pacscripts. You can still use install(), but with a deprecation notice. You cannot use both install() and package() in the same pacscript.
# Oldinstall() {
...
}
# Newpackage() {
...
}
Rationale
install is a Pacscript function, but also an external command that many pacscripts use. The way Pacstall has worked around this is by using a particular decision by sudo that prevents it from running a function of the same name. For instance, if the function ls exists, and you simply run ls, the function will run, but if you run sudo ls, the actual command in $PATH will run. The same logic was used in Pacstall, but this is hacky and prevents people from simply using install instead of command install in order to run the command without using sudo if they wanted.
This helps us converge the Pacscript spec with the PACBUILD spec.
$DISTRO variable
If you need to access the current system's distro and version, you can use $DISTRO which takes the form: $distro_name:$distro_version_name.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Pacstall v3.14.0 Payton
This update is a quality of life update focusing on important bug fixes and adding requested features. Users can update from Pacstall 3.0.0 or higher with
pacstall -U pacstall:master
, or reinstall using the deb file.Developers, Developers, Developers...
Features
package
function to replaceinstall
by @henryws (feat(install): addpackage
func to replaceinstall
#917)$DISTRO
variable by @henryws (feat(pacscript): addDISTRO
variable #918)Bug fixes
Architecture
in deb by @henryws (fix(*): assorted fixes #909)Changes
Performance changes
sed
by @henryws (refactor(pacstall): cut first char in var instead of sed #912)dirname
dependency by @henryws (refactor(pacstall): removedirname
, use redirection for sed, merge[[ ]]
#913)How to use new features
package
functionReplace
install()
withpackage()
in your pacscripts. You can still useinstall()
, but with a deprecation notice. You cannot use bothinstall()
andpackage()
in the same pacscript.Rationale
install
is a Pacscript function, but also an external command that many pacscripts use. The way Pacstall has worked around this is by using a particular decision bysudo
that prevents it from running a function of the same name. For instance, if the functionls
exists, and you simply runls
, the function will run, but if you runsudo ls
, the actual command in$PATH
will run. The same logic was used in Pacstall, but this is hacky and prevents people from simply usinginstall
instead ofcommand install
in order to run the command without usingsudo
if they wanted.$DISTRO
variableIf you need to access the current system's distro and version, you can use
$DISTRO
which takes the form:$distro_name:$distro_version_name
.Rationale
incompatible
to prevent certain distro installs, so why not add a variable to check that distro.Pacscript for this releases Deb
This discussion was created from the release 3.14.0 Payton.
Beta Was this translation helpful? Give feedback.
All reactions