Skip to content

Commit

Permalink
Allow stripping 0 leading directories from path names in rpm's. rpm2pkg
Browse files Browse the repository at this point in the history
complains about "-s 0" so don't pass the argument at all in that case.
  • Loading branch information
markd committed Nov 10, 2004
1 parent ecf3fb6 commit 5e10ca2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions emulators/suse91_linux/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.5 2004/11/08 12:41:08 wiz Exp $
# $NetBSD: Makefile.common,v 1.6 2004/11/10 09:04:08 markd Exp $

SUSE_VERSION= 9.1

Expand Down Expand Up @@ -31,8 +31,10 @@ BUILD_DEFS+= RPMIGNOREPATH
LDD?= ${TRUE}

RPM2PKGSTRIP?= 1
RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} \
-s ${RPM2PKGSTRIP}
RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
.if empty(RPM2PKGSTRIP:M0)
RPM2PKGARGS+= -s ${RPM2PKGSTRIP}
.endif
.for TEMP in ${RPMIGNOREPATH}
RPM2PKGARGS+= -i ${TEMP}
.endfor
Expand Down

0 comments on commit 5e10ca2

Please sign in to comment.