<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/web/html, branch v1.9.1</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/web/html?h=v1.9.1</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/web/html?h=v1.9.1'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2011-10-25T07:25:30Z</updated>
<entry>
<title>Wrap mysql_real_escape_string() in a function</title>
<updated>2011-10-25T07:25:30Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-10-20T06:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=10b6a8fff7e6d407421c74889455b969be7f867f'/>
<id>urn:sha1:10b6a8fff7e6d407421c74889455b969be7f867f</id>
<content type='text'>
Wrap mysql_real_escape_string() in a wrapper function db_escape_string()
to ease porting to other databases, and as another step to pulling more
of the database code into a central location.

This is a rebased version of a patch by elij submitted about half a year
ago.

Thanks-to: elij &lt;elij.mx@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;

Conflicts:

	web/lib/aur.inc.php
</content>
</entry>
<entry>
<title>web/html/pkgsubmit.php: Deal with unset category ID</title>
<updated>2011-09-05T14:47:59Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-09-02T15:17:01Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=1b63994b8d1ccd4d8cb4b065fde8c8b798d7781d'/>
<id>urn:sha1:1b63994b8d1ccd4d8cb4b065fde8c8b798d7781d</id>
<content type='text'>
Do not move the package to the incoming package directory and fail to
create proper database entries if some AUR upload helper doesn't provide
a category. We got several failing constraints here, such as:

  Cannot add or update a child row: a foreign key constraint fails
  (`AUR`.`Packages`, CONSTRAINT `Packages_ibfk_1` FOREIGN KEY
  (`CategoryID`) REFERENCES `PackageCategories` (`ID`) ON DELETE NO
  ACTION)

Instead, default to "1" (which is "none", or "keep category" for
existing packages) if no category is supplied.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use secure and httponly session cookies</title>
<updated>2011-08-11T22:09:24Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-08-11T14:31:25Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=00e4e0294f36f8e4a0c5926efdc16b31fcb4c788'/>
<id>urn:sha1:00e4e0294f36f8e4a0c5926efdc16b31fcb4c788</id>
<content type='text'>
As discussed on the mailing list, enable "secure" and "httponly" for
session cookies to prevent them from being transferred over insecure
connections.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use 'true' instead of 'True' everywhere</title>
<updated>2011-08-11T14:17:09Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-08-11T13:45:31Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=34fe0bec4cd29d1f8bcdfb34fb810556bfd939b2'/>
<id>urn:sha1:34fe0bec4cd29d1f8bcdfb34fb810556bfd939b2</id>
<content type='text'>
Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Make package creation and update atomic</title>
<updated>2011-08-11T14:17:08Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-08-10T23:20:07Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=5d74a994ff3e67bb2d3a3e27828785eb6bda94d9'/>
<id>urn:sha1:5d74a994ff3e67bb2d3a3e27828785eb6bda94d9</id>
<content type='text'>
Add BEGIN and COMMIT statements where it makes sense to do so. This
allows the entire package creation or update process to be atomic and
not be seen until it is complete.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Allow for merging deleted packages into existing ones</title>
<updated>2011-08-11T14:17:07Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-07-31T17:05:01Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=87bdee60bcca219ad13ea9bd14cd5611f9dac4c6'/>
<id>urn:sha1:87bdee60bcca219ad13ea9bd14cd5611f9dac4c6</id>
<content type='text'>
Merge all comments and votes of deleted packages into another package if
the "Merge with" field is used. Duplicate votes (votes from a user who
already voted on the target package or voted on more than one of the
deleted packages) are discarded.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Rename package_exists() to pkgid_from_name()</title>
<updated>2011-08-11T14:17:07Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-07-31T17:04:59Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=0ac8970b62ad728bc0988e7e0a7f16efe78ea6cd'/>
<id>urn:sha1:0ac8970b62ad728bc0988e7e0a7f16efe78ea6cd</id>
<content type='text'>
Describe what this function actually does: Return the ID of a package
with a given name and return NULL if such a package doesn't exist.

The function name is chosen in a fashion similar to other functions from
"pkgfuncs.inc.php" (pkgname_from_id(), pkgnotify_from_sid(), ...).

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Segment the upload directory by package name prefix</title>
<updated>2011-08-10T12:34:07Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-08-09T22:01:13Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=9a79d2105e2dea9876883da65a00d245d475bed2'/>
<id>urn:sha1:9a79d2105e2dea9876883da65a00d245d475bed2</id>
<content type='text'>
This implements the following scheme:

* /packages/cower/ --&gt; /packages/co/cower/
* /packages/j/     --&gt; /packages/j/j/
* /packages/zqy/   --&gt; /packages/zq/zqy/

We take up to the first two characters of each package name as a
intermediate subdirectory, and then the full package name lives
underneath that. Shorter named packages live in a single letter
directory.

Why, you ask? Well because earlier today the AUR hit 32,000 entries in
the unsupported/ directory, making new package uploads impossible. While
some might argue we shouldn't have so many damn packages in the repos,
we should be able to handle this case.

Why two characters instead of one? Our two biggest two-char groups, 'pe'
and 'py', both start with 'p', and have nearly 2000 packages each. Go
Python and Perl.

Still needed is a "move the existing data" script, as well as a set of
rewrite rules for those wishing to preserve backward compatible URLs for
any helper programs doing the wrong thing and relying on them.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix empty depends database insert</title>
<updated>2011-07-29T21:51:29Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-07-29T21:49:12Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=16cda58ff85aa3ae3534a2fe1fd0c998e01e8bb4'/>
<id>urn:sha1:16cda58ff85aa3ae3534a2fe1fd0c998e01e8bb4</id>
<content type='text'>
Do not try to insert a falsey value into the database in case of
"depends=()".

Signed-off-by: Manuel &lt;manutortosa@chakra-project.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Replace split() invocations with explode()</title>
<updated>2011-06-28T06:55:47Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-06-28T06:55:47Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6'/>
<id>urn:sha1:a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6</id>
<content type='text'>
Do not use split(), which has been deprecated as of PHP 5.3.0. As we
don't even require regular expressions here, just use explode() instead.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
