I've slove the probleme by hacking scriptt in an ugly way.
----------
for /var/lib/dpkg/info/emdebian-tools.postinst
change line 123 like this 
  && /^\s+release v=7.10,o=Ubuntu,a=(\w+),l=Ubuntu,c=main\s*$/) {
and line 134 add 
$suite = "unstable";

----------

and for /usr/share/perl5/Emdebian/Tools.pm 
line 265
replace en get_suite  like this :
sub get_suite()
{
        # list of suites supported by Emdebian toolchain repository.
        my @suites = qw/unstable testing stable sid etch/;
#       hack for ubuntu user
#       my $policy = `apt-cache policy 2>/dev/null | grep "l=Debian,c=main"`;
#       croak ("Unable to determine apt-cache policy: $!") if (!$policy);
#       $policy =~ /o=Debian,a=([a-z]*),l=Debian,c=main/;
#       my $suite = $1;
        my $suite = "unstable";
        foreach my $s (@suites)
        {
                # check the matched value is sensible.
                return $s if ($suite eq $s);
        }
        $suite = &check_dist if ($suite eq "");
        return $suite;
}

-- 
emdebian-tools.postinst
https://bugs.launchpad.net/bugs/121369
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to