summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source/Package/V3/git.pm
AgeCommit message (Collapse)AuthorFilesLines
2013-06-22Dpkg::Source::Package: Capitalize variant module namesGuillem Jover1-235/+0
Lowercase module names are reserved by convention for pragmas, and there's really no need to diverge here from the general dpkg project naming convention. Also make sure source package format variant names are always in lowercase, to not allow names that would not work with previous dpkg-source versions. Fixes NamingConventions::Capitalization.
2013-05-04Do not use double-quotes on strings that do not need interpolationGuillem Jover1-39/+39
Using double-quotes imposes a small performance penalty as the perl parser needs to check if any interpolation is needed. Use double-quotes only when the string contains single-quotes. Ideally we'd use double-quotes too for escaped meta-characters that might otherwise be confusing to immediately see if they need interpolation or not, but the policy does not (currently) allow to ignore these. Fixes ValuesAndExpressions::ProhibitInterpolationOfLiterals. Warned-by: perlcritic
2013-04-30Do not quote simple identifier hash keys in element accessesGuillem Jover1-10/+10
Addresses ValuesAndExpressions::ProhibitInterpolationOfLiterals. Warned-by: perlcritic
2013-04-29Dpkg: Use identifiers as key names whenever possibleGuillem Jover1-7/+7
The fixed key names are either inside unstable modules, internal to them or for keys in code never released, so should not cause much of an issue.
2013-04-28Use proper variables instead of barewords for filehandlesGuillem Jover1-3/+3
Fixes InputOutput::ProhibitBarewordFileHandles. Warned-by: perlcritic
2012-06-30Avoid full stop and double newline at the end of errors and warningsJonathan Nieder1-3/+3
Error messages like "couldn't parse control information from foo.deb" are not full sentences, so don't punctuate them like one. The main purpose of this patch is stylistic consistency, but perhaps it can also make copy-and-paste from messages like dpkg-query: no path found matching pattern /usr/bin/agrep. a little easier. Most actual full sentences should remain untouched. A few full sentences are error messages at heart, so this patch converts those to lower-case sentence fragment form, too. [guillem@debian.org: - Add missed strings. - Minor tweaks to strings. ] Closes: #624000 Requested-by: Jari Aalto <jari.aalto@cante.net> Signed-off-by: Guillem Jover <guillem@debian.org>
2010-07-25dpkg-source: fix path to gitshallow file in source format "3.0 (git)"Joey Hess1-1/+1
It was looking in the current directory, which works most of the time, but not always.
2010-07-25dpkg-source: modify source format "3.0 (git)" to use git bundleJoey Hess1-207/+107
Much better than the old approach of a tarball of the .git repository, the git bundle format is simple to understand and work with, and doesn't need to be sanitized for security. Much code went away. Supports limiting history depth by creating a shallow clone. Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2010-02-21Add $VERSION numbers to all perl modulesRaphaël Hertzog1-0/+2
Modules whose API should be stable have a version 1.00. The modules with version 0.01 are expected to have further API changes in the (near) future or are deemed to be useful mostly for dpkg-dev's internal usage.
2010-01-22Dpkg::Compression: new API based on public functionsRaphaël Hertzog1-2/+2
This API change requires lots of adjustements through the source code.
2009-11-08Clean up perl shebang lineGuillem Jover1-1/+0
Use “use warnings” instead of passing “-w”. Remove “--” parameters. Remove shebangs from perl modules. Remove spaces after “#!”.
2009-11-08Unify format in license headersGuillem Jover1-0/+1
Indent license text to one space after the '#'. Add '#' to blank lines between paragraphs and remove trailing '#' after the license text.
2009-11-08Replace FSF address by pointing to the gnu.org URLGuillem Jover1-2/+1
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases the outdated FSF address, which is way more stable, as the latter has changed several times in the past.
2009-11-06Dpkg::Source::Package::V3::git::do_build(): remove extra quotesRaphaël Hertzog1-1/+1
Remove extra quoting that should not be there while passing an exclude file to git ls-files during build of 3.0 (git) source package. Based-on-patch-by: Courtney Bane <debian-bugs-5265@cbane.org>
2009-03-15Dpkg::Version::check_version() should not die by defaultRaphael Hertzog1-3/+0
Add a new parameter to Dpkg::Version::check_version() to control whether we should die in case of illegal version. Update all check_version() calls to pass this parameter and factorize some duplicate calls in Dpkg::Source::Package::* with a single check in the parent class Dpkg::Source::Package.
2008-12-09Dpkg::ErrorHandling: Export public functions by defaultGuillem Jover1-1/+1
The remaining non exported functions and variables need to, either disappear, move to some better place, be renamed, or for variables to get hidden through a getter/setter.
2008-04-29Fix typo in an error messageRaphael Hertzog1-1/+1
* scripts/Dpkg/Source/Package/V3/git.pm (do_extract): Fix error message. * scripts/po/*.po: Update the po files accordingly.
2008-04-27dpkg-source: change the logic to find the object used to unpack/buildRaphael Hertzog1-0/+337
* scripts/Dpkg/Source/Package.pm (upgrade_object_type): Instead of using the full Format: version to deduce the perl object name use only the major part of the version. The minor part is under control of the corresponding object, that way they can evolve and indicate that the source package has changed in a backwards compatible way. See http://lists.debian.org/debian-dpkg/2008/04/msg00045.html Also add a new parameter to disable update of the minor version in the Format field. (initialize): Don't let the Format field be updated by upgrade_object_type() as this function only loads information from the .dsc into the object. * scripts/Dpkg/Source/Package/**: Rename V1_0.pm into V1.pm, V2_0.pm into V2.pm and V3_0/ into V3/. Fix perl package names accordingly. Integrated a $CURRENT_MINOR_VERSION set to "0" in all packages. * scripts/Makefile.am, scripts/po/POTFILES.in: Update the lists according to above file renames.