/[gentoo-x86]/eclass/fcaps.eclass
Gentoo

Diff of /eclass/fcaps.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v 1.5 2013/04/28 04:24:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fcaps.eclass,v 1.6 2013/06/01 02:29:49 vapier Exp $
4 4
5# @ECLASS: fcaps.eclass 5# @ECLASS: fcaps.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Constanze Hausner <constanze@gentoo.org> 7# Constanze Hausner <constanze@gentoo.org>
8# base-system@gentoo.org 8# base-system@gentoo.org
143 rcaps=$(filecap "${file}" | \ 143 rcaps=$(filecap "${file}" | \
144 sed -nr \ 144 sed -nr \
145 -e "s:^.{${#file}} +::" \ 145 -e "s:^.{${#file}} +::" \
146 -e 's:, +:\n:g' \ 146 -e 's:, +:\n:g' \
147 -e 2p | \ 147 -e 2p | \
148 LC_ALL=C sort) || return 1 148 LC_ALL=C sort)
149 [[ ${PIPESTATUS[0]} -eq 0 ]] || return 1
149 icaps=$(echo "${caps//,cap_}" | LC_ALL=C sort) 150 icaps=$(echo "${caps//,cap_}" | LC_ALL=C sort)
150 [[ ${rcaps} == ${icaps} ]] 151 [[ ${rcaps} == ${icaps} ]]
151 } 152 }
152 153
153 local out cmd notfound=0 154 local out cmd notfound=0

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20