Commit Graph

133 Commits

Author SHA1 Message Date
clime
f915d6bed6 dist-git: add temporary cache_dir_override option 2018-03-27 12:41:10 +02:00
clime
4f901eb9cf update dist-git.conf for next dist-git release
* this change is not exactly necessary due to default values, but
  I think it's better to be explicit
2018-02-26 14:46:54 +01:00
Pierre-Yves Chibon
56efae7e16 Do not relying on the existance of 3 spaces to make decisions
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-02-21 15:21:21 +01:00
Pierre-Yves Chibon
445e2eadfc Invert logic of namespace vs pdc type
We are iterating through the gitolite config that is namespace
aware (ie: rpms, modules) and are checking if the repo is in the
list to update, list coming from pdc and thus style aware not
namespaces (ie: rpm, module).
So invert the logic.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-02-20 17:23:21 +01:00
Pierre-Yves Chibon
d640cbbba0 Fix if the entry exists in pdc and not on disk and typo in an error message 2018-02-20 17:22:58 +01:00
Pierre-Yves Chibon
c558e739d8 dist-git doesn't trigger the POST_COMPILE (that was missing anyway
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-02-20 12:54:15 +01:00
Pierre-Yves Chibon
4464bf6eda Fixes some typos in the script updating the gitolite config for mass-branching
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-02-20 12:48:35 +01:00
Pierre-Yves Chibon
f17603d02a Add to dist-git the scripts we use for mass-branching
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-02-20 12:04:15 +01:00
clime
72e42a56b3 update dist-git.conf 2018-02-19 12:34:10 +01:00
Patrick Uiterwijk
4aa1c5bcc3 Block all but internal from pkgs.fp.o and set up robots.txt files
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-02-08 22:44:06 +00:00
Patrick Uiterwijk
58fcfbaca2 Remove the namespace from dist-git.conf so namespaced lookaside becomes possible
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-28 01:40:32 +02:00
Kevin Fenzi
40a7012c75 add highlighting for cgit on pkgs. ticket 6333 2017-09-12 01:50:43 +00:00
Kevin Fenzi
df6a521a6f bring cgit back for now until pagure can do rss/atom, show all namespaces, etc 2017-09-03 21:37:14 +00:00
Patrick Uiterwijk
3fbc71a614 Fix lookaside uploading until we can fix for realsies
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-08-09 23:47:47 +02:00
Patrick Uiterwijk
970c78b619 Fix git@ service in pkgs02
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-08-09 03:01:27 +02:00
Pierre-Yves Chibon
f2015d75e1 Adjust all the redirects for the disappearance of cgit
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2017-08-03 15:50:40 +02:00
Pierre-Yves Chibon
7180f1669a Move fedmsg-genacls-config.py to a template and configure it for the new world 2017-07-25 15:21:00 +02:00
clime
3fc69696b9 dist-git: clean up unused files and the main script 2017-07-13 21:36:07 +02:00
Brandon Gray
5de4b9a026 remove unused setup_git_package from distgit role 2017-07-13 21:22:57 +02:00
clime
cc29d3ed65 pkgs-stg: employ the dist-git package setup_git_package and mkbranch scripts 2017-05-22 09:25:39 +02:00
clime
17c52a6e59 dist-git: the new upstream dist-git package is now in EPEL7 2017-05-03 11:00:10 +02:00
Patrick Uiterwijk
9ef64fde7b This is renamed to container
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-04-12 17:50:45 +00:00
clime
b09633d23c use devel dist-git upstream 2017-02-14 16:04:38 +01:00
Kevin Fenzi
1db5d40fd8 tweak cgit for new pkgs->src redirect 2016-12-14 04:21:54 +00:00
Kevin Fenzi
9d00a8056b allow pkgs to do https clones of rpms repos 2016-12-12 22:26:21 +00:00
Pierre-Yves Chibon
4b29b6ff18 Migrate all the redirect rules from http://pkgs to https://src 2016-12-12 13:48:11 +01:00
Ralph Bean
b7941a75c5 Also, make cgit redirects aware of the new test-* namespaces. 2016-12-01 15:23:33 +00:00
Pierre-Yves Chibon
4e153f8912 Rename the hook post-receive-secondaryarch into post-receive-alternativearch 2016-10-28 10:59:16 +02:00
Pierre-Yves Chibon
8f04f6fa73 Add and install the secondary arch git hook
This hook is meant to notify secondary arch people about changes made to
packages that involves: ExclusiveArch or ExcludesArch.
2016-10-28 10:59:16 +02:00
Patrick Uiterwijk
6fad69aca7 Allow GSSAPI for lookaside
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-10-14 20:37:57 +00:00
Patrick Uiterwijk
f1dd7a7432 Unify all ssl cipher suite configurations
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-08-31 19:28:26 +00:00
Till Maas
25a4bd15ec Make dist-git-upload.cgi PEP8 compliant
Signed-off-by: Till Maas <opensource@till.name>
2016-05-17 20:04:52 +00:00
Ralph Bean
3c70c9aa82 Add modules here. 2016-04-12 15:35:58 +00:00
Ralph Bean
3310672c58 Tell selinux to allow git-daemon to follow symlinks, please. 2016-03-21 16:03:12 +00:00
Pierre-Yves Chibon
5c246f5ffd Add a new mkbranch script to be used only for mass-branching 2016-02-23 16:18:20 +01:00
Ralph Bean
7ae1df78b3 A regex that doesn't rely on '.git'. 2016-01-05 21:53:35 +00:00
Ralph Bean
cc0089049f Redirect old cgit repo urls to the new namespace. 2016-01-05 21:31:14 +00:00
Kevin Fenzi
d7978f9eec Fix duplicate entries in cgit due to namespace changes. 2016-01-02 17:25:15 +00:00
Ralph Bean
b581e4a6f9 Use the gitolite Alias feature in staging. 2015-12-22 17:37:06 +00:00
Ralph Bean
a57d418bfb Make gitolite.rc a template. 2015-12-22 16:49:28 +00:00
Pierre-Yves Chibon
5b6ce80a6b Move rpms to repositories on all scripts 2015-12-21 11:22:25 +01:00
Patrick Uiterwijk
4ec8ff4264 Publish the full list of git repos
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-12-18 00:50:29 +00:00
Ralph Bean
2bca286974 Make genacls.sh a template. 2015-12-17 21:54:17 +00:00
Pierre-Yves Chibon
9908aa99fe Point dist-git's cgit to the real deal 2015-12-17 16:36:15 +01:00
Pierre-Yves Chibon
e5fa3f7374 Point to /srv/git/repositories as this is both backward and forward compatible
And adjust the documentation to mkbranch
2015-12-11 13:44:18 +01:00
Mathieu Bridon
af02e32085 distgit: Ensure the hardlinked sources all belong to apache
Without this, client uploads and downloads aren't working any more.
2015-07-15 17:20:35 +02:00
Mathieu Bridon
3ff24f67b2 distgit: Generators don't have a length
This is fallout from the previous commit.
2015-07-13 23:03:44 +02:00
Mathieu Bridon
a11c53cb4d distgit: Harden the hardlink script a bit
Turns out the lookaside cache is not as clean as I expected.

Specifically, it contains some files where we'd expect directories, for
example:

/srv/cache/lookaside/pkgs/GFS-kernel/@13013.1e77f453ba1c86cd7616087d0643bbd8e
/srv/cache/lookaside/pkgs/openswan/tmpLRV5Gn5556cb2fcea6ba862ce14e1debf98b6d

This commit makes the script print an error instead of crashing on an
OSError in such a case.
2015-07-13 22:55:57 +02:00
Mathieu Bridon
e7074e8ad9 distgit: Add a script to make the new paths in the lookaside cache
We are migrating from the following path scheme:
    /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s

To:
    /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

As a result, we need to hardlink all the files existing under the old
path to their new path.

This script does just that.

Given that it should only ever be run once anyway, it is added as a
file to the distgit role, but not set to be installed anywhere.
2015-07-13 20:16:30 +00:00
Mathieu Bridon
6ea2c97f74 Add the full traceback to the logs 2015-06-05 18:33:13 +02:00