~ubuntu-branches/ubuntu/vivid/pkgbinarymangler/vivid

« back to all changes in this revision

Viewing changes to common

  • Committer: Martin Pitt
  • Date: 2011-11-15 09:41:47 UTC
  • Revision ID: martin.pitt@canonical.com-20111115094147-osoclko8emz1hb41
Move code for determining the location of the binary package control file,
and its existence check into common, and simplify pkgmaintainermangler,
pkgsanitychecks, and pkgstripfiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        [ "$ignore_invalid_cb" ] || exit 1
45
45
    fi
46
46
fi
 
47
 
 
48
# find binary package control file and name
 
49
while [ $# -gt 0 ]; do
 
50
    if [ -f "$1"/DEBIAN/control ]; then
 
51
        PKGCTL="$1"/DEBIAN/control
 
52
        break
 
53
    else
 
54
        shift
 
55
    fi
 
56
done
 
57
 
 
58
if [ -z "$PKGCTL" ]; then
 
59
    echo "$0: did not find a package name argument or control file, skipping"
 
60
    exit 0
 
61
fi
 
62