Commit Graph

57 Commits

Author SHA1 Message Date
85b067df45 libnetwork: remove warning on unexpected package version against git tag 2024-11-08 21:35:23 +01:00
59dc0bab78 lib/libnetwork.lib.in: fix syntax typo in sed expression added in previous commit 2024-06-13 14:46:14 +02:00
fadd2fbc2e libnetwork.lib.in: replace '%2B' with '+' in RPMS and SRPMS file list retrieval 2024-06-09 14:25:32 +02:00
7233b80200 lib/libnetwork.lib.in: make sure requested commit to checkout exists or fail 2024-02-08 17:23:01 +01:00
8655efaeb5 libnetwork.lib.in: fix support for pkg names containing '+' characters by converting %2B encoding with + 2023-10-03 19:42:30 +02:00
33c9c564cf libnetwork.lib.in,pck-update.in: disable repository reachability check and dependency on the 'host' tool 2023-07-22 15:21:37 +02:00
5c7c9f997e lib/libnetwork.lib.in: curl.ftp_command: autodetected webdav support for mkdir, rename-file and delete 2022-06-10 16:13:34 +02:00
4c108739a2 libnetwork.lib: support for url-decoding git tag so it works with i.e. 'subproject%2F1.0' for 'subproject/1.0' 2022-01-06 14:20:26 +01:00
bb706d3ef4 libnetwork.lib.in: fix SRPM download error for packages with '+' character (e.g. libxml++ did also match libxml++2) 2020-12-02 10:03:12 +01:00
66e607a4ca pck-update,linnetwork.lib: preserve .git directory if protocol is http[s]+git 2020-06-22 11:00:33 +02:00
fcdbf0fe9b libnetwork.lib: more support for https 2019-11-02 15:58:49 +01:00
38a689e2de libnetwork.lib.in: git sources: simple support for checking out at a specific commit by supporting the syntax: --git-branch branch[@commit_id] 2019-10-27 15:18:42 +01:00
93bcf6bb6b libnetwork.lib: add --recursive to git clone commands to correctly fetch repositories with external subtrees 2017-10-31 16:57:10 +01:00
b5b1121aee libnetwork.lib: support for git urls incompatibile with .git suffix (under testing) 2016-07-05 22:45:45 +02:00
41731ef882 libnetwork.lib: support for git repositories which don't have '.git' in their url 2015-09-26 15:00:22 +02:00
Davide Madrisan
1ef49ec99d libnetwork.lib - use the builtin command 'type' instead of 'which'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-12-14 22:31:27 +01:00
Davide Madrisan
26856b5b71 spec-create: Honour the pck version set by the user for specs generated from git
specfile.create(): always execute 'git.create_tarball()' with the option
'--pck-version'. This way a user-provided package version will be used
instead of the default one.

This patch will permit to force a user defined package version when desired.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-20 21:00:14 +02:00
b767938678 libnetwork.lib: quick fix: .git suffix is not optional when cloning from http/https urls 2014-07-08 18:09:24 +02:00
653fc9cd35 libnetwork.lib: never use '--depth=1' when cloning from http and https git urls
- fix necessary and tested with code.google.com
- additionally print full 'git clone ..' command line used in debug output
2013-08-04 22:34:00 +02:00
927ad3a5f7 libnetwork.lib: git source: add support for branch names containing slashes 2013-05-05 21:25:27 +02:00
Davide Madrisan
868c8b882a libs,tests: add a debug message saying that the file is being loaded
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 17:54:46 +01:00
Davide Madrisan
8cd4f03cb4 libraries: get rid of the clashing variables 'me'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 17:40:21 +01:00
Davide Madrisan
6b8099f31d libtranslate.lib: new library
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:02:42 +01:00
Davide Madrisan
288d828aaa translation framework: xgettext is buggy: use 'bash --dump-po-strings' instead and rework all the code
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 15:54:34 +01:00
Davide Madrisan
5a00359a29 Point to the translation file autospec-all in all modules and libraries
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-23 23:45:02 +01:00
Davide Madrisan
54b8190ba1 revert commit a03a529513: this creates some issues in the translations
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 23:05:06 +01:00
Davide Madrisan
a03a529513 all plugins: do not load a library already loaded by another autospec module
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 11:52:20 +01:00
Davide Madrisan
4623dd6866 libnetwork.lib: fix warning message in 'git.create_tarball()'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-31 22:11:49 +01:00
Davide Madrisan
3425fbf7ee libnetwork.lib: git.create_tarball(): add a warning message when the version passed to the function is not the expected one (that is a string made by the current date in the format YYYYMMDD followed by 'git')
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-31 22:01:49 +01:00
Davide Madrisan
f107a20bf8 libnetwork.lib; pck-update (action 3,5): improve the functions 'git.download()' and 'git.create_tarball()' by adding the option '--pck-version' and use it when calling 'git.download' in pck-update
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-30 23:17:59 +01:00
Davide Madrisan
dfbd94458e libnetwork.lib: new helper function: 'git.download'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-29 22:55:49 +01:00
Davide Madrisan
770a201882 lib/libnetwork.lib: curl.download(): do use the curl options set by the function argument '--options' (or '-o') instead of the global variable ''
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-20 12:28:30 +02:00
Davide Madrisan
1448f6ab3d libnetwork: fix syntax error
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:43:58 +02:00
Davide Madrisan
b0555e95b7 libnetwork: print an informational message before creating the source compressed tarball. This may take a while
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:34:16 +02:00
Davide Madrisan
dde8cdd235 libnetwork: clone the entire git repository when the option '--preserve-dot-git' is selected by user
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:23:40 +02:00
Davide Madrisan
6962a1ac16 libnetwork.lib: git.create_tarball(): add some debug messages
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 23:06:47 +02:00
Davide Madrisan
500d3b335e libnetwork.lib: git.create_tarball(): fix typo
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 21:14:04 +02:00
Davide Madrisan
5022004eac libnetwork.lib: git.create_tarball(): only clone the last commit
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 20:53:01 +02:00
Davide Madrisan
ef06c3e486 libnetwork.lib: do not run the git command in quiet mode
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-09-22 08:19:29 +02:00
Davide Madrisan
0a648b670e spec-create, lib/libnetwork.lib: add aupport for git branches in spec-create by adding the new options --git-branch and --preserve-dot-git
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-09-19 19:27:50 +02:00
Davide Madrisan
775f2a7049 libnetwork.lib: remove the extra newline added to workaroung a bug in curl; it is fixed now
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-08-28 23:55:09 +02:00
Davide Madrisan
b856cd2959 pck-update,libnetwork.lib: a package name can contain one or more undescores so add _ to the list of allowed characters
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-06-18 21:55:25 +02:00
Davide Madrisan
50b3fe9d32 libnetwork.lib: repository.get_srpm_pckname_from_site(): make the search case-insensitive
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-30 23:58:25 +02:00
Davide Madrisan
8f57ec4a1c libnetwork.lib: do not convert curl dumps to lowercase letters
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-29 00:10:30 +02:00
Davide Madrisan
04a69669e4 libnetwork.lib: make repository.get_srpm_pckname_from_site() work again for curl dumps of ftp sites
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-25 23:07:55 +02:00
Davide Madrisan
0594180470 libnetwork.lib: move code from spec-create to the new function git.create_tarball()
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-24 22:39:23 +02:00
Davide Madrisan
f6f0d6445f libnetwork.lib,autospec.spec: do not require "host"
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-23 23:12:08 +02:00
Davide Madrisan
37b7784608 pck-update,lib/libnetwork.lib: "host" is not required by pck-update; move the requirement to libnetwork
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-23 21:21:10 +02:00
Davide Madrisan
463df99f6c libnetwork.lib: simplify sed expression
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-14 23:16:20 +02:00
Davide Madrisan
2461f2ef9b libnetwork.lib: make search case insensitive
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-14 23:06:05 +02:00