Ticket #1920: deb-extfs.diff
File deb-extfs.diff, 1.6 KB (added by storchaka, 15 years ago) |
---|
-
deba.in
../ 16 16 { 17 17 my($qarchive)=@_; 18 18 $qarchive = quote($qarchive); 19 chop($date=`LC_ALL=C date "+% b %d%Y %H:%M"`);19 chop($date=`LC_ALL=C date "+%m-%d-%Y %H:%M"`); 20 20 chop($info_size=`apt-cache show $qarchive | wc -c`); 21 21 $install_size=length($pressinstall); 22 22 $upgrade_size=length($pressupgrade); -
debd.in
../ 109 109 { 110 110 my($archive)=@_; 111 111 my $qarchive = quote($archive); 112 chop($date=`LC_ALL=C date "+% b %d%Y %H:%M"`);112 chop($date=`LC_ALL=C date "+%m-%d-%Y %H:%M"`); 113 113 chop($info_size=`dpkg -s $qarchive | wc -c`); 114 114 $repack_size=length($pressrepack); 115 115 $reinstall_size=length($pressreinstall); … … 183 183 system("chmod a+x $qdestfile"); 184 184 } 185 185 } elsif($filename =~ /^DEBIAN/) { 186 $ filename=~s!^DEBIAN/!!;186 $qfilename=~s!^DEBIAN/!!; 187 187 system("cat /var/lib/dpkg/info/$qarchive.$qfilename > $qdestfile"); 188 188 } elsif($filename eq "DPKG-REMOVE" || $filename eq "APT-REMOVE") { 189 189 if ( open(FILEOUT,">$destfile") ) { … … 251 251 } elsif($filename eq "DPKG-RECONFIGURE") { 252 252 system("dpkg-reconfigure $qarchive"); 253 253 } elsif($filename=~/^DEBIAN/) { 254 $ filename=~s!^DEBIAN!!;254 $qfilename=~s!^DEBIAN!!; 255 255 system("/var/lib/dpkg/info/$qarchive.$qfilename"); 256 256 } else { 257 257 $qfilename=~s!^CONTENTS!!;