iankelling.org
/
git
/
distro-functions
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6861711
)
new useful function
master
author
Ian Kelling
<iank@fsf.org>
Mon, 21 Oct 2024 07:31:13 +0000
(
03:31
-0400)
committer
Ian Kelling
<iank@fsf.org>
Mon, 21 Oct 2024 07:31:13 +0000
(
03:31
-0400)
src/package-manager-abstractions
patch
|
blob
|
history
diff --git
a/src/package-manager-abstractions
b/src/package-manager-abstractions
index aa14875a093bfee508bd2dca1fa85012cfdc9c85..8b7989b0012e60c3bd6609558b99d914ba7250fc 100644
(file)
--- a/
src/package-manager-abstractions
+++ b/
src/package-manager-abstractions
@@
-95,6
+95,11
@@
elif command -v apt-get &>/dev/null; then
;;
esac
}
;;
esac
}
+ pbuild-dep() {
+ local pkg="$1"
+ shift
+ p build-dep "$pkg"/$(debian-archive) "$@"
+ }
pupdate() {
local now t s f cachetime limittime; [[ $EUID != 0 ]] && s=sudo
# update package list if its more than an 2 hours old
pupdate() {
local now t s f cachetime limittime; [[ $EUID != 0 ]] && s=sudo
# update package list if its more than an 2 hours old