[packages/lesspipe] recognize hudson/jenkins plugin packages (*.hpi, *.jpi)

glen glen at pld-linux.org
Mon Aug 20 11:51:58 CEST 2012


commit 7fd706863e6449c7b50854c2d24e8bbfb8339ccd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 20 12:51:30 2012 +0300

    recognize hudson/jenkins plugin packages (*.hpi, *.jpi)

 lesspipe.sh   | 2 +-
 lesspipe.spec | 7 +------
 2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/lesspipe.spec b/lesspipe.spec
index efdf05d..83059b1 100644
--- a/lesspipe.spec
+++ b/lesspipe.spec
@@ -5,7 +5,7 @@
 Summary:	Input preprocessor for less
 Summary(pl.UTF-8):	Preprocesor wejścia dla narzędzia less
 Name:		lesspipe
-Version:	1.53
+Version:	1.54
 Release:	1
 License:	GPL v2
 Group:		Applications/Text
@@ -38,11 +38,6 @@ Ten pakiet zawiera skrypt z PLD Linuksa wyświetlający zawartość
 różnych archiwów w sposób czytelny dla człowieka.
 
 %prep
-rev=$(awk '/Id.*Exp/{print $4}' %{SOURCE0})
-if [ "$rev" != "%{version}" ]; then
-	: define version to $rev
-	exit 1
-fi
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/lesspipe.sh b/lesspipe.sh
old mode 100644
new mode 100755
index eb7c3b5..f79ef97
--- a/lesspipe.sh
+++ b/lesspipe.sh
@@ -106,7 +106,7 @@ lesspipe() {
 	*.rpm) rpm -qpivl --changelog -- "$1" ;;
 	*.tar|*.ova) tar tvvf "$1" ;;
 	*.sqf) unsquashfs -d . -ll "$1" ;;
-	*.zip|*.jar|*.xpi|*.pk3|*.skz|*.gg|*.ipa) 7z l "$1" || unzip -l "$1" ;;
+	*.zip|*.jar|*.xpi|*.[hj]pi|*.pk3|*.skz|*.gg|*.ipa) 7z l "$1" || unzip -l "$1" ;;
 	# .war could be Zip (limewire) or tar.gz file (konqueror web archives)
 	*.war) 7z l "$1" || unzip -l "$1" || tar tzvvf "$1" ;;
 	# other file types not handled via mailcap (no mimetype)


More information about the pld-cvs-commit mailing list