DAB to be updated for squeeze-lts

apmuthu

Renowned Member
Feb 26, 2009
871
11
83
Chennai - India & Singapore
github.com
Please see if the following can be incorporated into the next DAB release:
Code:
--- usr/share/perl5/PVE/DAB.pm    Sat Sep 27 22:17:20 2014
+++ usr/share/perl5/PVE/DAB.pm    Sun Sep 28 19:06:55 2014
@@ -414,11 +414,19 @@
     }
 
     if (!$config->{source}) {
-    if ($suite eq 'etch' || $suite eq 'lenny' || $suite eq 'squeeze' || $suite eq 'wheezy' ) {
+    if ($suite eq 'etch' || $suite eq 'lenny') {
+        push @{$config->{source}}, "http://archive.debian.org/debian SUITE main contrib";
+        push @{$config->{source}}, "http://archive.debian.org/debian-security SUITE updates main contrib"
+    } elsif ($suite eq 'squeeze') {
         push @{$config->{source}}, "http://ftp.debian.org/debian SUITE main contrib";
-        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE-updates main contrib"
-        if ($suite eq 'squeeze' || $suite eq 'wheezy');
-        push @{$config->{source}}, "http://security.debian.org SUITE/updates main contrib";
+        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE-updates main contrib";
+        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE-lts main contrib";
+        push @{$config->{source}}, "http://security.debian.org SUITE/updates main contrib"
+    } elsif ($suite eq 'wheezy') {
+        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE main contrib";
+        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE-updates main contrib";
+        push @{$config->{source}}, "http://ftp.debian.org/debian SUITE-backports main contrib";
+        push @{$config->{source}}, "http://security.debian.org SUITE/updates main contrib"
     } elsif ($suite eq 'hardy' || $suite eq 'intrepid' || $suite eq 'jaunty') {
         my $comp = "main restricted universe multiverse";
         push @{$config->{source}}, "http://archive.ubuntu.com/ubuntu SUITE $comp";

What is the sanctity of some lines ending in ";" (semicolon) and others not and about the lone singular "if" statement ending in one? Only this sequence worked to enable squeeze builds with LTS repo.

This one now adds backports repo for wheezy as well and works fully.

View attachment DAB126diff_apm.txt

Patch Updated on 2014-09-28
 
Last edited:
Thanks for the info Diermar.

You may have to correct this bit in DAB.pm:
Code:
     # fake dpkg status
@@ -1504,7 +1518,7 @@ sub ve_mysql_bootstrap {
 
     my $suite = $self->{config}->{suite};
  
-    if ($suite eq 'squeeze' || $suite eq 'wheezy' ) {
+    if ($suite eq 'squeeze' || $suite eq 'wheezy') {
        $cmd = "/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables";
to include jessie as well.

Please include squeeze-lts repo to alleviate bash issues.