Functionality lost

Let X and Y be two sets of package, representing the state of an archive at times t and t+1, respectively. We say that the functionality of a package p1 in X is kept in Y when one of the following conditions hold :

  • There is a package p2 in Y such that p1 and p2 have the same unit name.
  • There is a package p2 in Y such that p1 and p2 have the same source.
  • There is a package p2 in Y such that p2 replaces p1.
We can compute lost functionality using history with the following script:
#print "Computing...";

$get <-
  let $architecture = "i386" in
  let $a =
    ($find_archive
       [
         ["debian"];
         ["stable";"unstable";"testing"];
         ["main";"contrib";"non-free"];
         [ $architecture ]
       ])
   in
   $a;

$lost <-
  $start ->
  $stop ->
  let $architecture = "i386" in
  let $a = ($find_archive [ ["debian"]; ["stable";"unstable";"testing"]; ["main";"contrib";"non-free"]; [$architecture] ]) in
  let $x = ($a $start) in
  let $y = ($a $stop) in
  let $units2 = unit($y) in
  let $sources2 = unit(source($y)) in
  let $replaces2 = replaces($y)
  in
  filter( ($x \ $y),
    $p1 ->
          (not(member($p1, $replaces2)))
      and (not(member(unit($p1), $units2)))
      and (not(member(unit(source($p1)), $sources2))) )

To load the script, use the command

#load "lost.dql"
. Then, the expression
$lost 2006-01-01 2006-11-01
will will give the set of packages that have disappeared, with no replacements, between these two dates. To get only the source unit names for that set, type
unit(source($lost 2006-10-01 2006-11-01))
. The latter expression should evaluate to :
{ apr-util1.0, apr1.0, directfb-0.9-22, gnutls12, kernel-patch-usagi, nvu,
  spca5xx-modules } : set of unit as int set

Differences with disappeared sources: (lost - disappeared)

Unit
-gtk-sharp2-unstable
+gwydion-dylan-dev
-irssi-snapshot
+kernel-patch-openmosix
+libmos
+libmos-dev
-licq-plugin-jonsgtk
+mindy
-mozilla-firefox-webdeveloper
+oftc-hybrid-doc
+pcmcia-modules-2.4.26-1-386
+pcmcia-modules-2.4.26-1-586tsc
+pcmcia-modules-2.4.26-1-686
+pcmcia-modules-2.4.26-1-686-smp
+pcmcia-modules-2.4.26-1-k6
+pcmcia-modules-2.4.26-1-k7
+pcmcia-modules-2.4.26-1-k7-smp
-pcmcia-modules-2.4.26-i386
-pts-tetex-cm-super
-superkaramba
-zodb3.4
Version 1.8 last modified by Berke on 14/11/2006 at 18:32

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: Berke on 2006/01/25 15:44
Copyright EDOS Consortium
1.1.1