~ubuntu-branches/ubuntu/precise/config-package-dev/precise-backports

« back to all changes in this revision

Viewing changes to encode

  • Committer: Package Import Robot
  • Author(s): Anders Kaseorg
  • Date: 2011-10-25 20:26:50 UTC
  • Revision ID: package-import@ubuntu.com-20111025202650-8qn409uejt90vwo0
Tags: 4.13
* Fix DEB_CHECK_FILES and DEB_TRANSFORM_FILES with non-conffiles in
  Multi-Arch: same packages.
* Fix encode script to work with Perl 5.12.  While we’re at it, turn on
  strict and warnings.
* Set LC_ALL=C when matching potentially localized dpkg output.
* Bump Standards-Version to 3.9.2 (no changes required).
* Add Vcs-Git, Vcs-Browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# This encoding is intended to be human-readable, so that users can
11
11
# determine the cause of conflicts between different configuration
12
12
# packages.
 
13
 
 
14
use strict;
 
15
use warnings;
13
16
 
14
17
$ARGV[0] =~ s,^/,,;
15
 
split('', $ARGV[0]);
16
 
foreach (@_){
 
18
foreach (split('', $ARGV[0])) {
17
19
    if (m/[a-z0-9.-]/) {
18
20
        print "$_";
19
21
    } elsif (m/[A-Z]/) {