Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
e3693d6c
Commit
e3693d6c
authored
Feb 01, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pisi package manager support (for Turkish distro PisiLinux)
parent
f1505edf
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
153 additions
and
3 deletions
+153
-3
distr_info
bin/distr_info
+4
-0
epm
bin/epm
+1
-1
epm-addrepo
bin/epm-addrepo
+3
-0
epm-autoorphans
bin/epm-autoorphans
+3
-0
epm-checkpkg
bin/epm-checkpkg
+7
-0
epm-checksystem
bin/epm-checksystem
+4
-0
epm-clean
bin/epm-clean
+3
-0
epm-download
bin/epm-download
+3
-0
epm-filelist
bin/epm-filelist
+8
-0
epm-history
bin/epm-history
+3
-0
epm-info
bin/epm-info
+3
-0
epm-install
bin/epm-install
+9
-0
epm-install-print-command
bin/epm-install-print-command
+6
-0
epm-list_available
bin/epm-list_available
+3
-0
epm-list_upgradable
bin/epm-list_upgradable
+3
-0
epm-packages
bin/epm-packages
+3
-0
epm-query
bin/epm-query
+18
-2
epm-query_file
bin/epm-query_file
+3
-0
epm-reinstall
bin/epm-reinstall
+3
-0
epm-remove
bin/epm-remove
+12
-0
epm-removerepo
bin/epm-removerepo
+3
-0
epm-repodisable
bin/epm-repodisable
+3
-0
epm-repoenable
bin/epm-repoenable
+3
-0
epm-repolist
bin/epm-repolist
+3
-0
epm-requires
bin/epm-requires
+9
-0
epm-search
bin/epm-search
+3
-0
epm-search_file
bin/epm-search_file
+3
-0
epm-simulate
bin/epm-simulate
+3
-0
epm-update
bin/epm-update
+3
-0
epm-upgrade
bin/epm-upgrade
+3
-0
epm-whatdepends
bin/epm-whatdepends
+6
-0
os-release
tests/etc/PisiLinux/etc/os-release
+9
-0
No files found.
bin/distr_info
View file @
e3693d6c
...
...
@@ -163,6 +163,9 @@ case $DISTRIB_ID in
Solus
)
CMD
=
"eopkg"
;;
PisiLinux
)
CMD
=
"pisi"
;;
Mandriva
)
CMD
=
"urpm-rpm"
;;
...
...
@@ -282,6 +285,7 @@ pkgtype()
openwrt
)
echo
"ipk"
;;
cygwin
)
echo
"tar.xz"
;;
solus
)
echo
"eopkg"
;;
pisilinux
)
echo
"pisi"
;;
*
)
case
$(
pkgmanager
)
in
*
-dpkg
)
...
...
bin/epm
View file @
e3693d6c
...
...
@@ -408,7 +408,7 @@ check_command()
epm_cmd
=
history
direct_args
=
1
;;
autoorphans|--orphans|remove-orphans
)
# HELPCMD: remove all packages not from the repository
autoorphans|--orphans|remove-orphans
|remove-orphaned
)
# HELPCMD: remove all packages not from the repository
epm_cmd
=
autoorphans
direct_args
=
1
;;
...
...
bin/epm-addrepo
View file @
e3693d6c
...
...
@@ -481,6 +481,9 @@ case $PMTYPE in
# Only for alone packages:
#sudocmd repo-add $pkg_filenames
;;
pisi
)
sudocmd pisi add-repo
"
$repo
"
;;
npackd
)
sudocmd npackdcl add-repo
--url
=
"
$repo
"
;;
...
...
bin/epm-autoorphans
View file @
e3693d6c
...
...
@@ -125,6 +125,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg remove-orphans
;;
pisi
)
sudocmd pisi remove-orphaned
;;
#guix)
# sudocmd guix gc
# ;;
...
...
bin/epm-checkpkg
View file @
e3693d6c
...
...
@@ -68,6 +68,10 @@ case $PMTYPE in
sudocmd eopkg check
return
;;
pisi
)
sudocmd pisi check
return
;;
esac
local
j cl
...
...
@@ -101,6 +105,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg check
$@
;;
pisi
)
sudocmd pisi check
$@
;;
*
)
fatal
'Have no suitable command for $PMTYPE'
;;
...
...
bin/epm-checksystem
View file @
e3693d6c
...
...
@@ -53,6 +53,10 @@ case $PMTYPE in
sudocmd brew doctor
return
;;
pisi
)
sudocmd pisi check
return
;;
esac
case
$BASEDISTRNAME
in
...
...
bin/epm-clean
View file @
e3693d6c
...
...
@@ -82,6 +82,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg delete-cache
;;
pisi
)
sudocmd pisi delete-cache
;;
pkgng
)
sudocmd pkg clean
-a
;;
...
...
bin/epm-download
View file @
e3693d6c
...
...
@@ -308,6 +308,9 @@ epm_download()
eopkg
)
docmd eopkg fetch
$*
;;
pisi
)
docmd pisi fetch
$*
;;
homebrew
)
docmd brew fetch
$*
;;
...
...
bin/epm-filelist
View file @
e3693d6c
...
...
@@ -111,6 +111,10 @@ __epm_filelist_file()
assure_exists eopkg
CMD
=
"eopkg --files info"
;;
pisi
)
assure_exists pisi
CMD
=
"pisi --files info"
;;
*
)
fatal
'Have no suitable query command for $PMTYPE'
;;
...
...
@@ -175,6 +179,10 @@ __epm_filelist_name()
docmd eopkg
--files
-s
info
$@
|
grep
"^/"
return
;;
pisi
)
docmd pisi
--files
-s
info
$@
|
grep
"^/"
return
;;
xbps
)
CMD
=
"xbps-query -f"
;;
...
...
bin/epm-history
View file @
e3693d6c
...
...
@@ -159,6 +159,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg
history
;;
pisi
)
docmd pisi
history
;;
zypper-rpm
)
docmd
cat
/var/log/zypp/history
;;
...
...
bin/epm-info
View file @
e3693d6c
...
...
@@ -140,6 +140,9 @@ case $PMTYPE in
eopkg
)
docmd eopkg info
$pkg_files
$pkg_names
;;
pisi
)
docmd pisi info
$pkg_files
$pkg_names
;;
appget
)
docmd appget view
$pkg_names
;;
...
...
bin/epm-install
View file @
e3693d6c
...
...
@@ -184,6 +184,9 @@ epm_install_names()
eopkg
)
sudocmd eopkg
$(
subst_option nodeps
--ignore-dependency
)
install
$@
return
;;
pisi
)
sudocmd pisi
$(
subst_option nodeps
--ignore-dependency
)
install
$@
return
;;
conary
)
sudocmd conary update
$@
return
;;
...
...
@@ -298,6 +301,9 @@ epm_ni_install_names()
eopkg
)
sudocmd eopkg
--yes-all
install
$@
return
;;
pisi
)
sudocmd pisi
--yes-all
install
$@
return
;;
nix
)
sudocmd nix-env
--install
$@
return
;;
...
...
@@ -453,6 +459,9 @@ epm_install_files()
eopkg
)
sudocmd eopkg
install
$files
return
;;
pisi
)
sudocmd pisi
install
$files
return
;;
emerge
)
load_helper epm-install-emerge
sudocmd epm_install_emerge
$files
...
...
bin/epm-install-print-command
View file @
e3693d6c
...
...
@@ -55,6 +55,9 @@ epm_print_install_files_command()
eopkg
)
echo
"eopkg install
$*
"
;;
pisi
)
echo
"pisi install
$*
"
;;
android
)
echo
"pm install
$*
"
;;
...
...
@@ -127,6 +130,9 @@ epm_print_install_names_command()
eopkg
)
echo
"eopkg install
$*
"
return
;;
pisi
)
echo
"pisi install
$*
"
return
;;
termux-pkg
)
echo
"pkg install
$*
"
return
;;
...
...
bin/epm-list_available
View file @
e3693d6c
...
...
@@ -109,6 +109,9 @@ case $PMTYPE in
eopkg
)
CMD
=
"eopkg list-available"
;;
pisi
)
CMD
=
"pisi list-available"
;;
choco
)
CMD
=
"choco search ."
;;
...
...
bin/epm-list_upgradable
View file @
e3693d6c
...
...
@@ -68,6 +68,9 @@ case $PMTYPE in
winget
)
docmd winget upgrade
;;
pisi
)
docmd pisi list-upgrades
;;
*
)
fatal
'Have no suitable query command for $PMTYPE'
;;
...
...
bin/epm-packages
View file @
e3693d6c
...
...
@@ -183,6 +183,9 @@ case $PMTYPE in
eopkg
)
CMD
=
"eopkg list-installed"
;;
pisi
)
CMD
=
"pisi list-installed"
;;
choco
)
CMD
=
"choco list"
;;
...
...
bin/epm-query
View file @
e3693d6c
...
...
@@ -238,7 +238,15 @@ __epm_query_name()
eopkg
)
showcmd eopkg blame
$1
local
str
str
=
"
$(
a
=
eopkg blame
$1
|
grep
"^Name"
)
"
str
=
"
$(
LC_ALL
=
C eopkg blame
$1
|
grep
"^Name"
)
"
[
-n
"
$str
"
]
||
return
1
echo
"
$str
"
|
sed
-e
"s|Name[[:space:]]*:
\(
.*
\)
, version:
\(
.*
\)
, release:
\(
.*
\)
|
\1
-
\2
-
\3
|"
return
;;
pisi
)
showcmd pisi blame
$1
local
str
str
=
"
$(
LC_ALL
=
C pisi blame
$1
|
grep
"^Name"
)
"
[
-n
"
$str
"
]
||
return
1
echo
"
$str
"
|
sed
-e
"s|Name[[:space:]]*:
\(
.*
\)
, version:
\(
.*
\)
, release:
\(
.*
\)
|
\1
-
\2
-
\3
|"
return
...
...
@@ -298,7 +306,15 @@ __epm_query_shortname()
eopkg
)
showcmd eopkg blame
$1
local
str
str
=
"
$(
a
=
eopkg blame
$1
|
grep
"^Name"
)
"
str
=
"
$(
LC_ALL
=
C eopkg blame
$1
|
grep
"^Name"
)
"
[
-n
"
$str
"
]
||
return
1
echo
"
$str
"
|
sed
-e
"s|Name[[:space:]]*:
\(
.*
\)
, version:
\(
.*
\)
, release:
\(
.*
\)
|
\1
|"
return
;;
pisi
)
showcmd pisi blame
$1
local
str
str
=
"
$(
LC_ALL
=
C pisi blame
$1
|
grep
"^Name"
)
"
[
-n
"
$str
"
]
||
return
1
echo
"
$str
"
|
sed
-e
"s|Name[[:space:]]*:
\(
.*
\)
, version:
\(
.*
\)
, release:
\(
.*
\)
|
\1
|"
return
...
...
bin/epm-query_file
View file @
e3693d6c
...
...
@@ -127,6 +127,9 @@ __do_query()
eopkg
)
CMD
=
"eopkg search-file"
;;
pisi
)
CMD
=
"pisi search-file"
;;
xbps
)
# FIXME: maybe it is search file?
CMD
=
"xbps-query -o"
...
...
bin/epm-reinstall
View file @
e3693d6c
...
...
@@ -58,6 +58,9 @@ epm_reinstall_names()
eopkg
)
sudocmd eopkg
--reinstall
install
$@
return
;;
pisi
)
sudocmd pisi
--reinstall
install
$@
return
;;
slackpkg
)
sudocmd_foreach
"/usr/sbin/slackpkg reinstall"
$@
return
;;
...
...
bin/epm-remove
View file @
e3693d6c
...
...
@@ -71,6 +71,9 @@ epm_remove_low()
eopkg
)
sudocmd eopkg
$(
subst_option nodeps
--ignore-dependency
)
remove
$@
return
;;
pisi
)
sudocmd pisi
$(
subst_option nodeps
--ignore-dependency
)
remove
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
$@
return
;;
...
...
@@ -139,6 +142,9 @@ epm_remove_names()
eopkg
)
sudocmd eopkg
$(
subst_option nodeps
--ignore-dependency
)
remove
$@
return
;;
pisi
)
sudocmd pisi
$(
subst_option nodeps
--ignore-dependency
)
remove
$@
return
;;
conary
)
sudocmd conary erase
$@
return
;;
...
...
@@ -233,6 +239,9 @@ epm_remove_nonint()
eopkg
)
sudocmd eopkg
$(
subst_option nodeps
--ignore-dependency
)
--yes-all
remove
$@
return
;;
pisi
)
sudocmd pisi
$(
subst_option nodeps
--ignore-dependency
)
--yes-all
remove
$@
return
;;
appget|winget
)
sudocmd
$PMTYPE
uninstall
-s
$@
return
;;
...
...
@@ -276,6 +285,9 @@ epm_print_remove_command()
eopkg
)
echo
"eopkg remove
$*
"
;;
pisi
)
echo
"pisi remove
$*
"
;;
aptcyg
)
echo
"apt-cyg remove
$*
"
;;
...
...
bin/epm-removerepo
View file @
e3693d6c
...
...
@@ -163,6 +163,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg remove-repo
"
$@
"
;;
pisi
)
sudocmd pisi remove-repo
"
$@
"
;;
slackpkg
)
info
"You need remove repo from /etc/slackpkg/mirrors"
;;
...
...
bin/epm-repodisable
View file @
e3693d6c
...
...
@@ -61,6 +61,9 @@ case $PMTYPE in
dnf5-rpm
)
sudocmd dnf config-manager setopt
"
$@
.enabled=0"
;;
pisi
)
docmd pisi disable-repo
"
$@
"
;;
eoget
)
docmd eoget disable-repo
"
$@
"
;;
...
...
bin/epm-repoenable
View file @
e3693d6c
...
...
@@ -64,6 +64,9 @@ case $PMTYPE in
eoget
)
docmd eoget enable-repo
"
$@
"
;;
pisi
)
docmd pisi enable-repo
"
$@
"
;;
*
)
fatal
'Have no suitable command for $PMTYPE'
;;
...
...
bin/epm-repolist
View file @
e3693d6c
...
...
@@ -150,6 +150,9 @@ case $PMTYPE in
eoget
)
docmd eoget list-repo
;;
pisi
)
docmd pisi list-repo
;;
pacman
)
if
[
-f
/etc/pacman.d/mirrorlist
]
;
then
docmd
grep
-v
--
"^#
\|
^$"
/etc/pacman.d/mirrorlist |
grep
"^Server ="
|
sed
-e
's|^Server = ||'
...
...
bin/epm-requires
View file @
e3693d6c
...
...
@@ -96,6 +96,10 @@ epm_requires_files()
showcmd eopkg info
$fl
LC_ALL
=
C
a
=
''
eopkg info
$fl
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
;;
pisi
)
showcmd pisi info
$fl
LC_ALL
=
C pisi info
$fl
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
;;
ELF
)
__epm_elf_requires
$fl
;;
...
...
@@ -192,6 +196,11 @@ case $PMTYPE in
LC_ALL
=
C
a
=
''
eopkg info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
return
;;
pisi
)
showcmd pisi info
$pkg_names
LC_ALL
=
C pisi info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
return
;;
xbps
)
CMD
=
"xbps-query -x"
;;
...
...
bin/epm-search
View file @
e3693d6c
...
...
@@ -59,6 +59,9 @@ case $PMTYPE in
eopkg
)
CMD
=
"eopkg search --"
;;
pisi
)
CMD
=
"pisi search --"
;;
yum-rpm
)
CMD
=
"yum search"
;;
...
...
bin/epm-search_file
View file @
e3693d6c
...
...
@@ -103,6 +103,9 @@ case $PMTYPE in
eopkg
)
CMD
=
"eopkg search-file"
;;
pisi
)
CMD
=
"pisi search-file"
;;
xbps
)
CMD
=
"xbps-query -Ro"
;;
...
...
bin/epm-simulate
View file @
e3693d6c
...
...
@@ -93,6 +93,9 @@ EOF
eopkg
)
CMD
=
"eopkg --dry-run install"
;;
pisi
)
CMD
=
"pisi --dry-run install"
;;
zypper-rpm
)
if
!
__use_zypper_dry_run
>
/dev/null
;
then
fatal
"zypper is too old: does not support --dry-run"
...
...
bin/epm-update
View file @
e3693d6c
...
...
@@ -168,6 +168,9 @@ case $PMTYPE in
eopkg
)
sudocmd eopkg update-repo
;;
pisi
)
sudocmd pisi update-repo
;;
apk
)
sudocmd apk update
;;
...
...
bin/epm-upgrade
View file @
e3693d6c
...
...
@@ -192,6 +192,9 @@ epm_upgrade()
eopkg
)
CMD
=
"eopkg upgrade"
;;
pisi
)
CMD
=
"pisi upgrade"
;;
slackpkg
)
CMD
=
"/usr/sbin/slackpkg upgrade-all"
;;
...
...
bin/epm-whatdepends
View file @
e3693d6c
...
...
@@ -99,6 +99,12 @@ case $PMTYPE in
LC_ALL
=
C
a
=
eopkg info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
return
;;
pisi
)
showcmd pisi info
$pkg
# pisi info prints it only from repo info
LC_ALL
=
C pisi info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
return
;;
xbps
)
CMD
=
"xbps-query -X"
;;
...
...
tests/etc/PisiLinux/etc/os-release
0 → 100644
View file @
e3693d6c
NAME="PisiLinux"
ID=pisilinux
VERSION="2.4 (Karagül)"
VERSION_ID="2.4"
VERSION_CODENAME=Karagül
PRETTY_NAME="Pisi GNU/Linux 2.4 (Karagül)"
HOME_URL="https://pisilinux.org/"
SUPPORT_URL="https://pisilinux.org/forum"
BUG_REPORT_URL="https://github.com/pisilinux/main/issues"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment