modules/generic_stage_target.py: Use 'portdir' instead of hard-coding '/usr/portage'
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 22 Nov 2013 04:51:13 +0000 (20:51 -0800)
committerMatt Turner <mattst88@gmail.com>
Sun, 15 Dec 2013 04:17:18 +0000 (20:17 -0800)
W. Trevor King: Refactored Git history for Brian Dolbec's content changes.

Reviewed-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
modules/generic_stage_target.py

index 0871cba8e13dbc399fcc87bba787adf511b3aace..0803a8c3185a5dd01cc7efc29cc079409d65b204 100644 (file)
@@ -1064,7 +1064,7 @@ class generic_stage_target(generic_target):
                                                "/use will cause portage to ignore"
                                        print "\tpackage.use in the profile and portage_confdir. You've been warned!"
 
-                       myf.write('PORTDIR="/usr/portage"\n')
+                       myf.write('PORTDIR="%s"\n' % self.settings['portdir'])
                        myf.write('DISTDIR="${PORTDIR}/distfiles"\n')
                        myf.write('PKGDIR="${PORTDIR}/packages"\n')