[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:02866] Re: Lintian (Re: Uploaded canna 3.5b2-10 to master)
- From: Fumitoshi UKAI <ukai@debian.or.jp>
- Subject: [debian-devel:02866] Re: Lintian (Re: Uploaded canna 3.5b2-10 to master)
- Date: Fri, 27 Feb 1998 01:16:02 +0900
- X-dispatcher: imput version 980114
- X-ml-info: If you have a question, send a mail with the body "# help" (without quotes) to the address debian-devel-ctl@debian.or.jp
- X-ml-name: debian-devel
- X-mlserver: fml [fml 2.1A#45]; post only from members
- References: <19980226215848Y.ukai@xxxxxxxxxxxxx>
- Message-id: <19980227011550Q.ukai@xxxxxxxxxxxxx>
- X-mail-count: 02866
- X-mailer: Mew version 1.93b7 on Emacs 20.2 / Mule 3.0 (MOMIJINOGA)
From: Fumitoshi UKAI <ukai@debian.or.jp>
Subject: [debian-devel:02864] Re: Lintian (Re: Uploaded canna 3.5b2-10 to master)
Date: Thu, 26 Feb 1998 21:58:56 +0900
> > bo環境でも lintian が動くようなので ちょっとやってみました。
>
> ちょっと嘘。
> 少なくとも以下のパッチを /usr/share/lintian/checks/files にあてる必要あり。
やはり、こんないい加減なパッチでは駄目だった(^^;
前のは捨てて、これを/usr/share/lintian/unpack/unpack-binpkg-l1 に
当ててください。
# hamm ではあてる必要ありません。
## tar を変えればいいのかな。
--- unpack-binpkg-l1.orig Fri Feb 27 01:04:39 1998
+++ unpack-binpkg-l1 Fri Feb 27 01:01:42 1998
@@ -52,7 +52,21 @@
(system("dpkg-deb -e $file $base_dir/control") == 0) or fail();
# create index file for package
-(system("dpkg-deb -c $file > $base_dir/index") == 0) or fail();
+#(system("dpkg-deb -c $file > $base_dir/index") == 0) or fail();
+%month = (Jan => '01', Feb => '02', Mar => '03', Apr => '04',
+ May => '05', Jun => '06', Jul => '07', Aug => '08',
+ Sep => '09', Oct => '10', Nov => '11', Dec => '12');
+open(C, "dpkg-deb -c $file|") or fail();
+open(I, ">$base_dir/index") or fail();
+while (<C>) {
+#bo: drwxr-xr-x root/root 0 Feb 26 21:35 1998 ./
+#hamm: drwxr-xr-x root/root 0 1997-08-08 16:21 ./
+ if (/^(\S+\s+\S+\s+\d+\s+)([A-Za-z]{3})\s+(\d+)\s+(\S+)\s+(\d+)(.*)/) {
+ $_ = $1 . "$5-$month{$2}-$3 $4" . $6 . "\n";
+ }
+ print I $_;
+}
+close(C);close(I);
# create control field files
for $field (keys %data) {
PS.
別に lintian に文句言われていても パッケージを
アップロードしてもいいですよ。
# もちろん、文句いわれないにこしたことはないけど。
--
鵜飼文敏