diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-07-05 13:39:26 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-07-05 13:39:26 +0000 |
commit | a239c00d5cb00afb0f32df566d97b3f04252a186 (patch) | |
tree | e6a0effca318c0b1ded1b71d34be9d3ce3e00b57 /eclass/linux-mod.eclass | |
parent | Old upstream release. (diff) | |
download | gentoo-2-a239c00d5cb00afb0f32df566d97b3f04252a186.tar.gz gentoo-2-a239c00d5cb00afb0f32df566d97b3f04252a186.tar.bz2 gentoo-2-a239c00d5cb00afb0f32df566d97b3f04252a186.zip |
minor change
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index c2ba38aa776e..89b776749062 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.41 2005/07/05 13:34:45 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.42 2005/07/05 13:39:26 johnm Exp $ # Description: This eclass is used to interface with linux-info in such a way # to provide the functionality required and initial functions @@ -194,7 +194,9 @@ move_old_moduledb() { if [[ -f ${OLDDIR}/moduledb ]]; then [[ ! -d ${NEWDIR} ]] && mkdir -p ${NEWDIR} - mv ${OLDDIR}/moduledb ${NEWDIR}/moduledb + [[ ! -f ${NEWDIR}/moduledb ]] && \ + mv ${OLDDIR}/moduledb ${NEWDIR}/moduledb + rm -f ${OLDDIR}/* rmdir ${OLDDIR} fi } |