Bug#554356: cupt: Retrieve package specifications from file

2009-11-04 Thread Jean-Christophe Dubacq
Package: cupt
Version: 1.2.1
Severity: wishlist
Tags: patch

I really would like cupt to be able to retrieve its file list from a file
(or some combination of files and args on cmdline, but I just need one
file for my personnal projects). The syntax could be '@/some/file' instead
of a package description (in which case, the content of the file is
read line by line and each line becomes a package description).

Sample patch included.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cupt depends on:
ii  libcupt-perl  1.2.1  alternative front-end for dpkg -- 
ii  perl  5.10.1-6   Larry Wall's Practical Extraction 
ii  sensible-utils0.0.1  Utilities for sensible alternative

cupt recommends no packages.

Versions of packages cupt suggests:
pn  libterm-readline-gnu-perl  (no description available)

-- no debconf information
--- cupt-1.2.1/cupt.orig2009-11-04 06:37:15.0 +0100
+++ cupt-1.2.1/cupt 2009-11-04 06:48:37.0 +0100
@@ -477,7 +477,17 @@
return \...@relations;
};
 
-   my @package_expressions = @ARGV;
+   my @package_expressions = ();
+   my @package_expressions_untreated = @ARGV;
+   foreach (@package_expressions) {
+   push @package_expressions,($_) and next unless /^@/;
+   my @list=();
+   s/^@//g;
+   open SOURCE,$_ or next; # Surely some warning should be given
+   chomp(@list=);
+   close SOURCE;
+   push @package_expressions,@list;
+   }
scalar @package_expressions or
mydie('no package expressions specified');
 


Bug#554356: cupt: Retrieve package specifications from file

2009-11-04 Thread Eugene V. Lyubimkin
package cupt
tags 554356 + pending
thanks

Jean-Christophe Dubacq wrote:
> Package: cupt
> Version: 1.2.1
> Severity: wishlist
> Tags: patch
> 
> I really would like cupt to be able to retrieve its file list from a file
> (or some combination of files and args on cmdline, but I just need one
> file for my personnal projects). The syntax could be '@/some/file' instead
> of a package description (in which case, the content of the file is
> read line by line and each line becomes a package description).
> 
Thanks, applied a slightly adjusted patch to the master branch.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Developer



signature.asc
Description: OpenPGP digital signature