Bug#638426: Fix: debsums reports that some aspell-sk files have changed

2019-08-17 Thread Tari
Hi

I attach a fix for the debsums issue which comes up after installation. We can 
use the same rules line like how aspell-en is handle it - ignoring the md5 sums 
for the /var/lib/aspell directory where the empty files are created. The way 
like aspell-bg is handle it differs in the way that they create or remove these 
files afterwards with postinst / postrm scripts.

Cheers
Tari


--- aspell-sk-2.02-0/debian/rules	2017-08-02 02:41:59.0 +0200
+++ aspell-sk-2.02-1/debian/rules	2019-08-17 19:59:17.826855721 +0200
@@ -6,6 +6,8 @@
 
 DICT_LANG := sk
 
+DEB_DH_MD5SUMS_ARGS += -Xvar/lib/aspell
+
 install/aspell-$(DICT_LANG)::
 	for f in *.cwl; do \
 	gzip -9 -c "$$f" > "$(DEB_DESTDIR)/usr/share/aspell/"$$f".gz"; \


Bug#784885: [dput-ng-maint] Bug#784885: dcut: "dm" subcommand do not work

2019-08-16 Thread Tari
Hi

To fix the key error for missing valid commands I added some checks. Would that 
solve the bug? Or should we check if the host is ftp-master when dm is supplied?

./dput/command.py in invoke_dcut()

 command.validate(args)

+if 'ftp-master' not in profile['name'] and 'dm' in command.cmd_name:
+   raise DcutError("Use DM command with ftp-master")
+
 if args.passive:
 force_passive_ftp_upload(profile)

Best
Tari
diff -Nru dput-ng-1.28/dput/command.py dput-ng-1.28+1/dput/command.py
--- dput-ng-1.28/dput/command.py	2018-08-25 10:39:16.0 +0200
+++ dput-ng-1.28+1/dput/command.py	2019-08-14 22:37:16.0 +0200
@@ -75,6 +75,10 @@
 
 def load_commands(profile):
 commands = []
+
+if not 'valid_commands' in profile:
+return []
+
 for command in profile['valid_commands']:
 logger.debug("importing command: %s" % (command))
 try:
@@ -196,8 +200,13 @@
 if args.simulate:
 logger.warning("Not uploading for real - dry run")
 
-command = args.command
-assert(issubclass(type(command), AbstractCommand))
+command = None
+if hasattr(args,'command'):
+command = args.command
+
+if not command:
+   raise DcutError("No commands given")
+
 command.validate(args)
 
 if args.passive:
diff -Nru dput-ng-1.28/dput/profile.py dput-ng-1.28+1/dput/profile.py
--- dput-ng-1.28/dput/profile.py	2018-02-22 10:00:33.0 +0100
+++ dput-ng-1.28+1/dput/profile.py	2019-08-14 22:37:16.0 +0200
@@ -197,8 +197,8 @@
 return config.get_config(host)
 
 if host is not None:
-raise DputConfigurationError("Error, was given host, "
- "but we don't know about it.")
+raise DputConfigurationError("Was given host, "
+ "but not found in the profile/config.")
 
 for block in configs:
 try:


Bug#876566: printfilters-ppd: Depends of no longer available package (mpage)

2019-08-16 Thread Tari
Hi

What should we do here with the from Debian removed package? We could at least 
move the mpage from depend to recommend to fix the issue with install and 
build. See diff below for that small change. But as Jeremy Bicha said on 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876571, also recommending a 
no-longer-builtin package would be a bug. Removing everything related to mpage?

Can I help making needed changes?

Best
Taridiff -u printfilters-ppd-2.13/debian/control printfilters-ppd-2.13-1/debian/control
--- printfilters-ppd-2.13/debian/control
+++ printfilters-ppd-2.13-1/debian/control
@@ -7,8 +7,8 @@

Package: printfilters-ppd
Architecture: any
-Depends: transfig, mpage, perl (>= 5.005), libprintsys, ppdfilt, file, ${shlibs:Depends}, ${misc:Depends}
-Recommends: enscript, lprng | lpr-ppd, ghostscript, smbclient
+Depends: transfig, perl (>= 5.005), libprintsys, ppdfilt, file, ${shlibs:Depends}, ${misc:Depends}
+Recommends: enscript, mpage, lprng | lpr-ppd, ghostscript, smbclient
Suggests: dvips, netpbm, libjpeg-progs|libjpeg-gif, libtiff-tools, recode, djtools, bzip2
Conflicts: apsfilter, magicfilter
Description: filters from the GNUlpr printing system