--- /usr/bin/pbuilder-dist 2009-05-05 19:28:16.000000000 -0500 +++ /usr/local/bin/pbuilder-dist 2009-07-13 15:09:22.000000000 -0500 @@ -248,7 +248,9 @@ arguments.append('--debootstrapopts --arch') arguments.append('--debootstrapopts "%(build_architecture)s"' % self) - ### $( [ $ISDEBIAN != "False" ] || echo "--aptconfdir \"${BASE_DIR}/etc/${DISTRIBUTION}/apt.conf/\"" ) \ + apt_conf_dir = os.path.join(self.base, 'etc/%(target_distro)s/apt.conf' % self) + if os.path.exists(apt_conf_dir): + arguments.append('--aptconfdir "%s"' % apt_conf_dir) # Append remaining arguments if remaining_arguments: