summaryrefslogtreecommitdiffstats
path: root/commitpkg
AgeCommit message (Collapse)AuthorFilesLines
2011-08-18commitpkg: use getopts to parse optionsDave Reisner1-9/+11
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18commitpkg: declare rsyncopts as an arrayDave Reisner1-3/+3
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-15commitpkg: Fix leading whitespace in commit messagesLukas Fleischer1-3/+1
Commit c51cc8d365fad3be529776e9dce34ac115664451 erroneously introduced a tab character that is prepended to the body of each commit message. Fix this by using C-style newline escape sequences which will avoid further whitespace issues caused by re-indentation of code at this point. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-14Only commit if neededPierre Schmitz1-19/+21
2011-08-13commitpkg: Provide a commit message templateLukas Fleischer1-3/+18
Generate a message template when omitting the commit message (includes the same subject line that is used if a commit message is specified). Also, use two newlines to separate the subject line from the message body as it looks much clearer that way. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-13commitpkg: Use positive patterns in SVN checksLukas Fleischer1-2/+2
In addition to what we had before, this will also detect: * Non-existent files. * Files that are missing or scheduled for deletion. * Ignored files. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-13commitpkg: Avoid unnecessary use of grep(1)Lukas Fleischer1-3/+3
Use bash patterns instead of using grep(1) to check if a source file contains the string "://". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-13commitpkg: Proper quoting in version control checksLukas Fleischer1-4/+4
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-05-30Include epoch in updpkg default messageuser1-1/+1
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-05-18commitpkg: add -a option to upload only one archFlorian Pritz1-2/+12
-a i686 uploads only i686 packages and ignore everything else Signed-off-by: Florian Pritz <bluewind@server-speed.net> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-17Use GPGKEY to select signing keyAllan McRae1-1/+4
Use the default key from the gpg keyring to sign packages unless GPGKEY is specified (either in makepkg.conf or as an environmental variable). Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-17commitpkg: clean up svn after changing arch from any to i686/x86_64Eric Bélanger1-0/+9
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-11Add simple function to sign packagesPierre Schmitz1-0/+7
Set SIGNPKG to y in makepkg.conf to enable signing.
2011-04-08Fix rsync call; quotes wont work herePierre Schmitz1-1/+1
2011-04-02commitpkg: upload signatures if availableDan McGee1-1/+6
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-02commitpkg: upload all files at the same timeDan McGee1-3/+8
Batch them up using a bash array and then pass them all to a single invocation of rsync. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-02commitpkg: add '-y' to rsyncoptsDan McGee1-1/+1
This allows uploads to possibly be smaller if a similar file exists nearby without the same name. Unlikely in most cases, but we might as well take advantage if they do exist: Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-02commitpkg: move all rsync opts to rsyncopts varDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-02commitpkg: make repo/server selection more modularDan McGee1-31/+24
This gets rid of the ever-expanding conditional we had before and replaces it with two case statements. The first handles the command name. If it ends with 'pkg', we treat the entire first part of the reponame, unless of course 'commitpkg' was called directly. This allows one to add new symlinks such as 'gnome-unstablepkg'. The second handles the server. Well-known repositories are listed and passed to the appropriate server. All unusual repos are assumed to live on gerolde and sent that direction. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-03-28Don't prefix package name with './' if package is in $PKGDESTRémy Oudompheng1-3/+5
Commit ad593b8b61558da779530a6cb8f4938a273f5553 introduces a problem when $PKGDEST is set and the package to transfer has an absolute pathname. In this case there is no need to add anything to have rsync work properly. Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-03-26Be less generic with package extensionAllan McRae1-2/+2
Arch only uses .gz and .xz packages so look for .pkg.tar.?z. This prevents matching potential detached signature files. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-03-26Abort properly if source files are not under version control (FS#23122).Lukas Fleischer1-7/+7
Remove superfluous subshell code from version control checks in commitpkg, making it exit properly if source files are not under version control. Also, improve correctness of sed(1) commands and use fgrep(1) instead of grep(1) where appropriate. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-03-23commitpkg: prefix package filenames with ./Dave Reisner1-1/+1
This is a hint to rsync that the file is a path and not a remote module in the case of a package with an epoch in the version. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-03-23add epoch supportFlorian Pritz1-2/+16
Signed-off-by: Florian Pritz <bluewind@server-speed.net> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-10-19commitpkg: pkgfile might be an absolute path when using PKGDESTPierre Schmitz1-1/+1
2010-09-16commitpkg: error out if ~/staging/$repo doesn't existFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-09-11ad support for multilib-testingPierre Schmitz1-0/+3
2010-09-01add support for community-staging repositoryPierre Schmitz1-0/+3
2010-08-22add initial [multilib] supportPierre Schmitz1-0/+3
2010-08-17add [staging] repositoryPierre Schmitz1-0/+2
2010-06-28local can only be used within functionsPierre Schmitz1-2/+1
2010-06-28check if changelog and install files are commited to svnPierre Schmitz1-1/+14
2010-06-25keep partially transferred filesPierre Schmitz1-1/+1
2010-06-24removed mode lines; was not a good idea after allPierre Schmitz1-3/+0
2010-06-22commitpkg: add newline to make output look more orderlyEric Bélanger1-1/+1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-03-31Force correct remote file permissionsPierre Schmitz1-1/+1
2010-03-03Upload any pkg.tar.* file as long as it is canonicalPierre Schmitz1-4/+16
2010-02-17commitpkg: dereference symlinks on package uploadDan McGee1-1/+1
This is a regression introduced after switching to rsync in place of scp; scp dereferenced symlinks automatically without need for a command-line option. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-02-13apply common coding stylePierre Schmitz1-59/+60
2010-02-13inform the user of activities that might take a longer time0.9.1Pierre Schmitz1-2/+7
2010-02-12supress confusing output of pushd and popd0.9.0Pierre Schmitz1-2/+2
2010-02-12copy files seperately to avoid escaping problemsPierre Schmitz1-3/+1
2010-02-11check install files, tooPierre Schmitz1-1/+1
2010-02-11update commentPierre Schmitz1-1/+1
2010-02-11abort if not all local source files are under version controlPierre Schmitz1-0/+7
This looks a little hacky. The || true is needed because grep will return 1 if in fact everything is fine. implements FS#18048
2010-02-11avoid useless output in commitpkgPierre Schmitz1-12/+5
2010-02-11simplify and optimize upload processPierre Schmitz1-36/+16
Use rsync instead of scp to be able to continue uploads and get upload verification for free. We also try to commit to svn trunk first to avoid useless uploads (FS#18088).
2009-10-26Change loop var CARCH to _archFrancois Charette1-4/+4
This is just better practice, as CARCH means something else in makepkg.conf Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-10-26Change "uploading to" message to be less ambiguousFrancois Charette1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-10-06commitpkg: tidy quotes and remove unneeded bracesEvangelos Foutras1-13/+13
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>