Tweak src_unpack a bit more to handle snaps again #323009 by Maksim Melnikau.
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Jun 2010 04:59:56 +0000 (04:59 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 8 Jun 2010 04:59:56 +0000 (04:59 +0000)
sys-libs/glibc/ChangeLog
sys-libs/glibc/files/eblits/src_unpack.eblit

index a8700ad9272e2404c6cf99ebed6bf6ee67f8f07a..882034c6d93bbf4a6458121683dfc1efbfd4b3af 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-libs/glibc
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.684 2010/05/20 18:17:49 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.685 2010/06/08 04:59:56 vapier Exp $
+
+  08 Jun 2010; Mike Frysinger <vapier@gentoo.org>
+  files/eblits/src_unpack.eblit:
+  Tweak src_unpack a bit more to handle snaps again #323009 by Maksim
+  Melnikau.
 
   20 May 2010; Samuli Suominen <ssuominen@gentoo.org> glibc-2.5-r4.ebuild,
   glibc-2.5.1.ebuild, glibc-2.6.1.ebuild, glibc-2.7-r2.ebuild,
index 5de2a7f08fb90a47aa488b8c52bde4fb78382338..d99dc563b39e56d468bd5145b8fb2326614e7d41 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v 1.10 2010/04/25 17:17:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v 1.11 2010/06/08 04:59:56 vapier Exp $
 
 int_to_KV() {
        local version=$1 major minor micro
@@ -60,12 +60,14 @@ unpack_pkg() {
        local a=${PN}
        [[ -n ${SNAP_VER} ]] && a="${a}-${RELEASE_VER}"
        [[ -n $1 ]] && a="${a}-$1"
-       if [[ -n $2 ]] ; then
-               a="${a}-$2"
-       elif [[ -n ${SNAP_VER} ]] ; then
+       if [[ -n ${SNAP_VER} ]] ; then
                a="${a}-${SNAP_VER}"
        else
-               a="${a}-${RELEASE_VER}"
+               if [[ -n $2 ]] ; then
+                       a="${a}-$2"
+               else
+                       a="${a}-${RELEASE_VER}"
+               fi
        fi
        unpack ${a}.tar.bz2
        [[ -n $1 ]] && mv ${a} $1