diff options
author | Michael Weber <xmw@gentoo.org> | 2012-07-20 08:17:24 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-07-20 08:17:24 +0000 |
commit | a447791b2f6a3a12aef266c389f8cff7429cb518 (patch) | |
tree | 897b4b9e219d6c4f05a864ab476a0684360e6ef5 /net-misc/minidlna | |
parent | fix directory test (diff) | |
download | gentoo-2-a447791b2f6a3a12aef266c389f8cff7429cb518.tar.gz gentoo-2-a447791b2f6a3a12aef266c389f8cff7429cb518.tar.bz2 gentoo-2-a447791b2f6a3a12aef266c389f8cff7429cb518.zip |
fix directory test, again
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/minidlna')
-rw-r--r-- | net-misc/minidlna/ChangeLog | 5 | ||||
-rw-r--r-- | net-misc/minidlna/minidlna-1.0.25-r1.ebuild | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/net-misc/minidlna/ChangeLog b/net-misc/minidlna/ChangeLog index 18229d7cd521..e49565eebeff 100644 --- a/net-misc/minidlna/ChangeLog +++ b/net-misc/minidlna/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-misc/minidlna # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.21 2012/07/20 08:11:19 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.22 2012/07/20 08:17:24 xmw Exp $ + + 20 Jul 2012; Michael Weber <xmw@gentoo.org> minidlna-1.0.25-r1.ebuild: + fix directory test, again 20 Jul 2012; Michael Weber <xmw@gentoo.org> minidlna-1.0.25-r1.ebuild: fix directory test diff --git a/net-misc/minidlna/minidlna-1.0.25-r1.ebuild b/net-misc/minidlna/minidlna-1.0.25-r1.ebuild index 94288421abfc..715dd30c2d70 100644 --- a/net-misc/minidlna/minidlna-1.0.25-r1.ebuild +++ b/net-misc/minidlna/minidlna-1.0.25-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/minidlna-1.0.25-r1.ebuild,v 1.2 2012/07/20 08:11:19 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/minidlna-1.0.25-r1.ebuild,v 1.3 2012/07/20 08:17:24 xmw Exp $ EAPI=4 @@ -27,11 +27,11 @@ DEPEND="${RDEPEND} virtual/pkgconfig" pkg_setup() { - locale my_is_new=yes - [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="" + local my_is_new="yes" + [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no" enewgroup ${PN} enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} - if [ -n "${my_is_new}" ] ; then + if [ "${my_is_new}" == "yes" ] ; then chown ${PN}:${PN} /var/lib/${PN} || die chmod 0750 /var/lib/${PN} || die fi |