summaryrefslogtreecommitdiff
path: root/rpmpopt.in
diff options
context:
space:
mode:
Diffstat (limited to 'rpmpopt.in')
-rw-r--r--rpmpopt.in34
1 files changed, 4 insertions, 30 deletions
diff --git a/rpmpopt.in b/rpmpopt.in
index d5a6b140b..4409a04f6 100644
--- a/rpmpopt.in
+++ b/rpmpopt.in
@@ -43,36 +43,10 @@ rpm alias --scripts --qf '\
' \
--POPTdesc=$"list install/erase scriptlets from package(s)"
-rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || \
- \[ -n %{FILELINKTOS:shescape} \] || \
- ( \[ $((%{FILEFLAGS} & 2#1001000)) != 0 \] && \[ ! -e %{FILENAMES:shescape} \] ) || \
- chmod %7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
- --pipe "grep -v \(none\) | grep '^. -L ' | sed 's/chmod .../chmod /' | sh" \
- --POPTdesc=$"set permissions of files in a package"
-
-rpm alias --setugids -q --qf \
- '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape} %{FILEFLAGS}\n]' \
- --pipe "(echo 'ch() { ( \[ $(($4 & 2#1001000)) != 0 \] && \[ ! -e \"$3\" \] ) || \
- (chown -h -- \"$1\" \"$3\";chgrp -h -- \"$2\" \"$3\";) }'; \
- grep '^ch '|grep -v \(none\))|sh" \
- --POPTdesc=$"set user/group ownership of files in a package"
-
-rpm alias --setcaps -q --qf \
- "[if \[ -f %{FILENAMES:shescape} -a ! -L %{FILENAMES:shescape} \]; then\n\
-%|FILECAPS?{ if \[ -n %{FILECAPS:shescape} \]; then\n\
- setcap %{FILECAPS:shescape} %{FILENAMES:shescape}\n\
- el}:{ }|if \[ -n \"\$(getcap %{FILENAMES:shescape})\" \]; then\n\
- setcap -r %{FILENAMES:shescape}\n\
- fi\n\
-fi\n]" \
- --pipe "sh" \
- --POPTdesc=$"set capabilities of files in a package"
-
-rpm alias --restore -q --qf \
- '[ rpm --setugids %{NAME:shescape}; \
- rpm --setperms %{NAME:shescape}; \
- rpm --setcaps %{NAME:shescape}; \n]' --pipe "sh" \
- --POPTdesc=$"restore file/directory permissions"
+# obsolete
+rpm alias --setperms --restore
+rpm alias --setugids --restore
+rpm alias --setcaps --restore
rpm alias --conflicts --qf \
"[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \