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
Иван Мажукин
eepm
Commits
3bae6d39
Commit
3bae6d39
authored
Dec 10, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm changelog: improve support for deb systems
parent
fe706525
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
epm-changelog
bin/epm-changelog
+21
-7
No files found.
bin/epm-changelog
View file @
3bae6d39
...
@@ -27,6 +27,19 @@ __epm_changelog_apt()
...
@@ -27,6 +27,19 @@ __epm_changelog_apt()
done
done
}
}
__epm_changelog_dpkg
()
{
local
i
tmpdir
=
"
$(
mktemp
-d
)
"
||
fatal
remove_on_exit
"
$tmpdir
"
for
i
in
$@
;
do
docmd dpkg-deb
-x
$i
$tmpdir
/extract
||
fatal
docmd zcat
$tmpdir
/extract/usr/share/doc/
*
/changelog
*
.gz
rm
-rf
$tmpdir
/extract
done
}
__epm_changelog_files
()
__epm_changelog_files
()
{
{
[
-z
"
$*
"
]
&&
return
[
-z
"
$*
"
]
&&
return
...
@@ -37,9 +50,9 @@ __epm_changelog_files()
...
@@ -37,9 +50,9 @@ __epm_changelog_files()
assure_exists rpm
assure_exists rpm
docmd_foreach
"rpm -q -p --changelog"
$@
docmd_foreach
"rpm -q -p --changelog"
$@
;;
;;
#
deb)
deb
)
#
__epm_changelog_dpkg
"
$@
"
#
;;
;;
*
)
*
)
fatal
'Have no suitable command for $1 in epm_changelog()'
fatal
'Have no suitable command for $1 in epm_changelog()'
;;
;;
...
@@ -78,13 +91,14 @@ __epm_changelog_unlocal_names()
...
@@ -78,13 +91,14 @@ __epm_changelog_unlocal_names()
apt-rpm
)
apt-rpm
)
__epm_changelog_apt
"
$1
"
__epm_changelog_apt
"
$1
"
;;
;;
#apt-dpkg)
# # FIXME: only first pkg
# docmd zcat /usr/share/doc/$1/changelog.Debian.gz | less
# ;;
#yum-rpm)
#yum-rpm)
# sudocmd yum clean all
# sudocmd yum clean all
# ;;
# ;;
apt-dpkg
)
#assure_exist apt
#docmd apt changelog "$1"
docmd apt-get changelog
"
$1
"
;;
urpm-rpm
)
urpm-rpm
)
docmd urpmq
--changelog
"
$1
"
docmd urpmq
--changelog
"
$1
"
;;
;;
...
...
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